7.3.3 Calls to the Object Release, Document Release, and Server Release Callbacks

The Release callback functions for objects, servers, and documents can be invoked in response to a server application calling OleRenameServerDoc, OleRevokeObject, OleRevokeServerDoc, and OleRevokeServer. The following callbacks are called in the order described:

Action:Server Application calls OleRenameServerDoc for an embedded document.

OLESVR.DLL calls (if server application is no longer in communcation with any client application after the call to OleRenameServerDoc):

Server Callback

Release

Action:Server Application calls OleRevokeObject.

OLESVR.DLL calls:

Object Callback

Release

Server Callbacks

Release (if a client application was communicating with the obejct before the call to OleRevokeObject and there are no client applications communicating with the server application after the OleRevokeObject call

Action:Server Application calls OleRevokeServerDoc.

OLESVR.DLL calls:

Object Callbacks

Release (for each object in the document

Document Callbacks

Release

Server Callbacks

Release (if the server application is no longer in communication with any client application after the call to OleRevokeServerDoc)

Action:Server Application calls OleRevokeServer.

OLESVR.DLL calls:

Object Callbacks

Release (for each object in each document open in the server application)

Document Callbacks

Release (for each document in open in the server application)

Server Callbacks

Release