sounds like if you put some code in the constructor of a global
variable, then you'd be called twice per xsi session, since your dll
will be loaded and unloaded twice?

On Fri, Oct 26, 2012 at 9:34 AM, Marc-Andre Belzile
<marc-andre.belz...@autodesk.com> wrote:
> Sorry for not being clear enough. When a plugin is loaded at startup or 
> through LoadPlugin, all plugin items are registered through XSILoadPlugin and 
> then the dll is unloaded by XSI *without* calling XSIUnloadPlugin. Anything 
> allocated in the current dll process will be zapped by the OS at this point. 
> The plugin dll will be loaded back again when one of the registered plugin 
> item is required by XSI, and in this case XSILoadPlugin *won't* be called 
> again. So if you allocated objects or resources in the plugin dll process 
> through XSILoadPlugin, they will not be available when the dll is loaded back.
>
> -mab

Reply via email to