Subject Re: [firebird-support] Gsec Error Codes?
Author Helen Borrie
At 02:20 AM 7/06/2008, you wrote:
>Hi Folks:
>
> Developing on Windows XP Home.
>
> I posted a question about Gsec return values three months ago and
>haven't recieved a response.
>
> I run Gsec from my C++ code with a CreateProcess() statement and
>call WaitForSingleObject() in order to wait for Gsec to finish. When
>Gsec is finished running I check it's return code. Usually this
>return code is 0, but sometimes it's 1.
>
> I've been looking for a reference showing gsec return values, but I
>haven't been able to find any.
>
> Can someone show me a reference to Gsec's return values?

There's no "reference" that I know of. For the command-line executables, both 0 and non-zero are finish codes. For most, including gsec, the entire field is 0=finished normally, 1=finished with errors. (I have a vague memory that Claudio added some more non-zero codes to gbak at some point, though.)

./heLen



> Thanks
> Larry
>
>
>
>------------------------------------
>
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>Visit http://www.firebirdsql.org and click the Resources item
>on the main (top) menu. Try Knowledgebase and FAQ links !
>
>Also search the knowledgebases at http://www.ibphoenix.com
>
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>Yahoo! Groups Links
>
>
>