PRB: DB-Library Application Exits to Command PromptID: Q105019
|
A 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.
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.
NOTE: The DB-Library sample error handlers contain code similar to
the following:
if ((dbproc == NULL) || (DBDEAD(dbproc)))
return(INT_EXIT);
Ensure that the application's error handler returns INT_CANCEL instead
of INT_EXIT, similar to the following:
if ((dbproc == NULL) || (DBDEAD(dbproc)))
return(INT_CANCEL);
printf("DB-Library Error %i: %s\n", dberr, dberrstr);
if ((dbproc == NULL) || (DBDEAD(dbproc)))
return(INT_EXIT);
Additional query words: exit quit crash dblib
Keywords : kbprg SSrvDB_Lib SSrvProg
Version : 4.2 | 4.2 | 4.2
Platform : MS-DOS OS/2 WINDOWS
Issue type :
Last Reviewed: March 17, 1999