company logo

DBBaseContext :: doBeforeClose - Before close handler

The before close reacts on the DBO_Close event, i.e. it is called when the context is going to be closed. In this phase all resources of the context are still accessible.

The handler can be overloaded in specialized property and type context class implementations.

Notes:

In some cases, close handler are not called when closing the database: When implementing the handler function in OSI AND when loading resources from a resource database rather than from a dictionary, the resource database might be closed before closing the database (when being closed implicitly by closing the dictionary). This is no problem in generel, since one has to be an expert in order to produce such a situation.

Return value:  Execution error ( int32  )

The value is usually returned from context functions or actions in order to report the result of execution. The variable may contain following values:

  • -1: function/action not executed
  • 0: function executed normally
  • 1-9: Function executed with errors. Error codes depend on the function/action called.

Implementation details

int32 DBBaseContext  :: doBeforeClose (  )