dbwinexit (Windows only)

DB Library for C

DB Library for C

dbwinexit (Windows only)

Informs DB-Library that the Microsoft® Windows® application is about to exit.

Syntax

void dbwinexit ( void );

Remarks

DB-Library for Windows maintains information about each application that has referenced it. DB-Library creates the information when a library application calls dbinit; it does this to prevent conflicts between applications that use DB-Library concurrently. For DB-Library to release this information, the application must call dbwinexit just before it exits. You should put the call to dbwinexit within the message handling code for the WM_DESTROY message. For example:

case WM_DESTROY:
   dbwinexit();
   break;

This call releases the memory DB-Library allocated to keep track of this application and makes that memory available to other applications.

It should be noted that dbwinexit does not close any connections. Use dbclose or dbexit to close connections.

Important  After your application has called dbwinexit, it cannot call any other DB-Library function. If you have called dbwinexit and then need to issue one or more DB-Library calls, you must call dbinit again to reregister your application.

See Also

dbinit