C++
virtual bool unloadModule( const ACHAR * fileName, bool asCmd = false ) = 0;
Description
This function unloads the ObjectARX module fileName. Before physically unloading the module, the application's acrxEntryPoint() function is called with the kUnloadAppMsg message to allow it to perform cleanup. Notification is also sent about the impending unload.
Note The fileName string is case and path sensitive, so it must be either exactly the same as string that was used to load the application or it must be the same as the string returned by the acedArxLoaded() function.
When asCmd is kFalse, it's possible to call this method more than once and still get a successful return value. This method will simply decrement the reference count for the application.
The asCmd value used for unloadModule() must be the same as the one used for loadModule().
Parameters
| Parameters | Description |
|---|---|
| fileName | Input null-terminated string which is the file name of the program to unload |
| asCmd | Input Boolean indicating whether to unload the application as if by user command |