company logo

ODABAClient :: ShutDown - Shut down client

Usually the last ODABAClient handle referring to the client will shut down the client when being destructed. In some cases, e.g. when creating a client with an ini-file and using system services as data catalog or error logs, some system references are still active and referring to the main client. To be sure that the main client is closed properly one should use the ShutDown() function before destructing the client. Make sure that there are no other references to the client in the application anymore.

The function will delete all resources associated with the client and close the client. When the client is the default or main client, which has been created automatically, the function will close the main client.

Return value:  Success ( logical  )

Implementation details

logical ODABAClient  :: ShutDown ( char close_system=YES )
  • close_system - Close system

    Close system forces to close down all registered threads, when the client to be closed is the main client.

    Default: YES