Mozilla.com

  1. MDC
  2. Main Page
  3. nsIModule
  4. canUnload
Table of contents
  1. 1. Summary
  2. 2. Parameters
  3. 3. Return Values
  4. 4. Remarks
Table of contents
  1. 1. Summary
  2. 2. Parameters
  3. 3. Return Values
  4. 4. Remarks

« XPCOM API Reference

Summary

This method may be queried to determine whether or not the component module can be unloaded by XPCOM.

 boolean registerSelf(
   in nsIComponentManager aCompMgr
 );

Parameters

aCompMgr
[in] The global component manager.

Return Values

The return value of this method indicates to the caller whether or not the component module can be unloaded. Returning true isn't a guarantee that the module will be unloaded. It constitutes only willingness of the module to be unloaded. It is very important to ensure that no outstanding references to the module's code/data exist before returning true. Returning false guarantees that the module will not be unloaded.

Remarks

If the component module is native (i.e., as part of a DLL), then this method may be called to determine whether or not the DLL may be unloaded from memory.

Note that as of Mozilla 1.7, native component modules are never unloaded.

Page last modified 01:43, 24 Apr 2006 by Pmash

Files (0)