RPC HELP DLL GuideLines CPP Destroy Broker Instances

From VistApedia
Jump to: navigation, search

RPC Broker Help Home

DLL Interface Home

C++: Destroy Broker Instances

You do not need to do anything special to free up memory used by the TRPCBroker component instances and their companion TRPCBroker C++ class objects. They are automatically destroyed when your program terminates, just as normal variables are automatically destroyed.

Also, when your program terminates, the FreeLibrary Windows API call is automatically executed to unload the RPC Broker 32-bit DLL, so there is no need to do this manually.