Share

AcRxDynamicLinker::unloadApp

C++

virtual bool unloadApp(
    const ACHAR * appName, 
    bool asCmd = false
) = 0;

Description

This function unloads the appName ObjectARX program. appName is the application name as set in the operating system registry. If the ObjectARX application was not loaded via the AcRxDynamicLinker::loadApp() or acrxLoadApp() methods or through the demand loading mechanism (all of which use the system registry entry for the application), then this function will be unable to unload the application.

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.

Note

The asCmd value used for unloadApp() must be the same as the one used for loadApp().

The function returns true if the module was successfully unloaded; otherwise, it returns false.

Parameters

Parameters Description
appName Input null-terminated string which is the application name (as set in the system registry) of the ObjectARX module to unload
asCmd Input Boolean indicating whether to unload the application as if by user command

Links

AcRxDynamicLinker

Was this information helpful?