Description
Unregisters a user object that was previously registered.
Syntax
SharedObjectUnregister ( instancename )
Argument |
Description |
---|---|
instancename |
The name assigned to the shared object instance when it was first registered |
Return value
ErrorReturn. Returns one of the following values:
-
Success! -- The function succeeded
-
SharedObjectNotExistsError! -- The instance name has not been registered
Usage
This function marks a shared object for destruction. But the object is not actually destroyed until there are no more references to the object.
Examples
In this example the application unregisters the object instance called share1:
SharedObjectUnregister("share1")
See also