Yep cached.  That explains it.

On Fri, Oct 26, 2012 at 4:37 PM, Kamen Lilov <kamen.li...@chaosgroup.com> wrote:
> On 10/26/2012 7:52 PM, Nicolas Burtnyk wrote:
>>
>> I'm confused.  I just tested this and global variable constructors
>> only get called once in my plugin (on 2012 SP1).
>>
> Nicolas, is your plugin DLL marked as 'cached'?
>
> Because I double-checked the mechanism explained by Marc-Andre, turns out
> he's right (not surprisingly - he's the SDK lead after all ;) ) BUT - this
> all applies only to external plugins not marked as cached. "Cached" ones -
> which happens to be the default - are LoadLibrary-ied just once, and
> FreeLibrary-ied just once (unless ofcourse you select Reload)
>
>

Reply via email to