title: What happens to global variables declared in a DLL?
body: <p>Let's say I write a DLL in C++, and declare a global object of a class with a non-trivial destructor.  Will the destructor be called when the DLL is unloaded?</p>