Subject | Re: [firebird-support] Re: Capture the output of GBAK console process and display on your GUI applicati |
---|---|
Author | Helen Borrie |
Post date | 2007-12-08T02:34:42Z |
At 01:10 PM 8/12/2007, you wrote:
./heLen
>> What is your question? :-)If you are using Delphi, why on earth are you trying to run gbak? Using a Services API, you can use a purpose-built component, to run the backup or restore and watch the verbose output in a TMemo...
>
>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.
./heLen