Subject | Re: Capture the output of GBAK console process and display on your GUI applicati |
---|---|
Author | Chau Chee Yang |
Post date | 2007-12-08T02:10:34Z |
> What is your question? :-)I am trying to use the following windows api to redirect the output of
gbak.exe to my rich GUI application:
1. CreatePipe
2. CreateProcess
3. ReadFile
If I use gbak to backup or restore a small database, the above
approach works fine. However, if I backup or restore a large database
(60MB++), it takes few minutes for GBAK to finish the operation. When
GBAK output the message line by line on screen, my rich GUI Delphi
application may stop somewhere waiting for the redirected message
emitted by GBAK.
To know how I wrote the rich application. You may refer to this thread:
http://groups.google.com/group/borland.public.delphi.language.delphi.win32/browse_frm/thread/fa5f2e93e4aa8db7
> Can't you use a threaded approach to avoid the GUI applicationThreaded approach can't help.
> to appear hanging?