The information in this article applies to:
SYMPTOMSA character mode DB-Library application exits to the operating system command prompt, often without any errors or messages. This frequently occurs on a call to dbopen. CAUSE
The DB-Library application's error handler is likely returning INT_EXIT.
This tells DB-Library to completely and immediately exit the
application, and return to the operating system command prompt.
For example, if the dbopen function fails for any reason, a NULL DBPROCESS pointer is passed to the error handler along with DB-Library error 10004. This will cause the above code to return INT_EXIT, which as stated above will immediately exit the application. WORKAROUND
Ensure that the application's error handler returns INT_CANCEL instead
of INT_EXIT, similar to the following:
Returning INT_CANCEL tells DB-Library to simply return FAIL from the current DB-Library function. Otherwise, ensure that the application displays an appropriate message before returning INT_EXIT, similar to the following:
Additional query words: exit quit crash dblib
Keywords : kbprg SSrvDB_Lib SSrvProg |
Last Reviewed: March 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |