OleUninitialize
f90VB Modules
f90VBDefs, f90VBAutomation
Summary
Closes the COM library on the current thread, unloads all DLLs loaded by the thread, frees any other resources that the thread maintains, and forces all RPC connections on the thread to close.
Syntax
| subroutine OleUnInitialize | () |
Arguments
This subroutine has no arguments.
Comments
A thread must call OleUninitialize once for each successful call it has made to OleInitialize. Only the OleUninitialize call corresponding to the OleInitialize call that initialized the library can close it.
Calls to OleInitialize must be balanced by calls to OleUninitialize. The OleUninitialize function calls ComUninitialize internally, so applications that call OleUninitialize do not also need to call ComUninitialize.
OleUninitialize should be called on application shutdown, as the last call made to the COM library.
Examples
See examples in Chapter 6 - User Manual.
Related Topics
| For information about: | See: | |
| Initializing the OLE library | OleInitialize | |
| Initializing the COM Library | ComInitialize, ComInitializeEx | |
| Uninitializing the OLE library | OleUninitialize | |