Subject | Re: Capture the output of GBAK console process and display on your GUI applicati |
---|---|
Author | Chau Chee Yang |
Post date | 2008-01-17T04:41:16Z |
I have tried to changed the firebird source code to fix the I/O
redirector problem on windows platform. I have also reported this
problem to Firebird-Devel and hope someone there may help me verify if
the changes I make is safe and valid. Here is the post I sent:
Hi,
I recently faced a problem with redirector coding on using GBAK.EXE in
windows platform. I have post a thread on firebird-support group
recently and gain some feedbacks:
http://tech.groups.yahoo.com/group/firebird-support/message/90995
After study an article in Microsoft knowledgebase
http://support.microsoft.com/kb/190351
I finally find out the problem redirector problem in GBAK.EXE. I have
tried to make changes to the Firebird source code and I able to solve
the problem. I am not sure if some one here able to help me change
the source and check in to the Firebird CVS repository?
Here is the changes I made:
burp.cpp in firebird-1.5.4.4910.tar.bz2:
static void burp_output( const SCHAR * format, ...)
{
...
else {
VA_START(arglist, format);
vsprintf((char *) buf, format, arglist);
va_end(arglist);
exit_code = tdgbl->output_proc(tdgbl->output_data, buf);
fflush(NULL); // Flush the IO and instructed by
Microsoft knowledge base (kb/190351) to avoid I/O redirector problem
}
if (exit_code != 0)
EXIT(exit_code);
}
I think it affect the all the previous and current release of GBAK.EXE
redirector problem on windows platform. I have also reported this
problem to Firebird-Devel and hope someone there may help me verify if
the changes I make is safe and valid. Here is the post I sent:
Hi,
I recently faced a problem with redirector coding on using GBAK.EXE in
windows platform. I have post a thread on firebird-support group
recently and gain some feedbacks:
http://tech.groups.yahoo.com/group/firebird-support/message/90995
After study an article in Microsoft knowledgebase
http://support.microsoft.com/kb/190351
I finally find out the problem redirector problem in GBAK.EXE. I have
tried to make changes to the Firebird source code and I able to solve
the problem. I am not sure if some one here able to help me change
the source and check in to the Firebird CVS repository?
Here is the changes I made:
burp.cpp in firebird-1.5.4.4910.tar.bz2:
static void burp_output( const SCHAR * format, ...)
{
...
else {
VA_START(arglist, format);
vsprintf((char *) buf, format, arglist);
va_end(arglist);
exit_code = tdgbl->output_proc(tdgbl->output_data, buf);
fflush(NULL); // Flush the IO and instructed by
Microsoft knowledge base (kb/190351) to avoid I/O redirector problem
}
if (exit_code != 0)
EXIT(exit_code);
}
I think it affect the all the previous and current release of GBAK.EXE