Plug-in User's Tutorial
Plug-in users instantiate and use the implementations. They need to have a comeplete knowledge of using the plug-in framework. The plug-in users also need to a follow an explicit memory cleanup procedure to ensure the handles held on unused plug-in implementations and their associated DLLs are closed.
- Using
the Plug-in Framework
Clients of a plug-in framework use the C++ APIs provided by the
framework for interaction with the framework. Client calls to the interface
definition are translated directly through REComSession
into
loading and unloading of the correct implementation library together with
construction and destruction of an appropriate interface implementation.
- Cleaning-up
Memory
To ensure the plug-in framework unloads the plug-in DLLs when they
are no longer required and releases associated memory, the clients should
follow an explicit memory cleanup procedure. The main purpose is to release
memory and close handles held on unused plug-in implementations and their
associated DLLs. The memory clean-up should be performed after all instantiated
interface objects have been deleted.