mozilla

Revision 119498 of NP_Shutdown

  • Revision slug: NP_Shutdown
  • Revision title: NP_Shutdown
  • Revision id: 119498
  • Created:
  • Creator: Mgjbot
  • Is current revision? No
  • Comment robot Adding: [[ja:NP Shutdown]]
Tags: 

Revision Content

{{wiki.template('Np-plugin-api')}}

Summary

Provides global deinitialization for a plug-in.

Syntax

#include <npapi.h>
 
void NP_Shutdown(void);

Description

The browser calls this function once after the last instance of your plug-in is destroyed, before unloading the plug-in library itself. Use NP_Shutdown to delete any data allocated in NP_Initialize to be shared by all instances of a plug-in.

If you have defined a Java class for your plug-in, be sure to release it at this time so that Java can unload it and free up memory.

NOTE: If enough memory is available, the browser can keep the plug-in library loaded if it expects to create more instances in the near future. The browser calls NP_Shutdown only when the library is finally unloaded.

See Also

NP_Initialize, NPP_Destroy

{{ wiki.languages( { "ja": "ja/NP_Shutdown" } ) }}

Revision Source

<p>
</p><p>
{{wiki.template('Np-plugin-api')}}
</p>
<h3 name="Summary">Summary</h3>
<p>Provides global deinitialization for a plug-in.
</p>
<h3 name="Syntax">Syntax</h3>
<pre>#include &lt;npapi.h&gt;
 
void NP_Shutdown(void);
</pre> 
<h3 name="Description">Description</h3>
<p>The browser calls this function once after the last instance of your plug-in is destroyed, before unloading the plug-in library itself. Use <code>NP_Shutdown</code> to delete any data allocated in <a href="en/NP_Initialize">NP_Initialize</a> to be shared by all instances of a plug-in.
</p><p>If you have defined a Java class for your plug-in, be sure to release it at this time so that Java can unload it and free up memory.
</p>
<div class="note">
<p>NOTE: If enough memory is available, the browser can keep the plug-in library loaded if it expects to create more instances in the near future. The browser calls <code>NP_Shutdown</code> only when the library is finally unloaded.
</p>
</div>
<h3 name="See_Also">See Also</h3>
<p><a href="en/NP_Initialize">NP_Initialize</a>, <a href="en/NPP_Destroy">NPP_Destroy</a>
</p>{{ wiki.languages( { "ja": "ja/NP_Shutdown" } ) }}
Revert to this revision