contents   index   previous   next



ComUninitialize

 

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 ComUninitialize ()

Arguments

 

This subroutine has no arguments.

Comments

 

A thread must call ComUninitialize once for each successful call it has made to ComInitialize or ComInitializeEx. Only the ComUninitialize call corresponding to the ComInitialize or ComInitializeEx 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.

 

ComUninitialize 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

 


CreateOleObject