Platform Package reference: Function _UnlockObject()

Description of the function _UnlockObject() available in all Platform Packages for WebGL JavaScript compatible target systems. This function is intended to be used when integrating the Embedded Wizard created GUI application with the underlying graphics subsystem, graphics hardware or other external GUI applications coexisting on the same system.

Declaration

function _UnlockObject( aObject )

Parameters

aObject

The object to unlock.

Discussion

The function _UnlockObject() removes the object aObject from the global root set. Objects, which are stored in the root set will still keep alive together with other objects depending on them. For example:

var someObject = ... EmWiApp._UnlockObject( someObject );

Objects, which are not stored in the root set and not referenced by any other object stored in the root set are garbage and will be released during the next garbage collection. To add an object to the root set the function _LockObject() is available.