Click to See Complete Forum and Search --> : global and static variable in a class delivered in a DLL


George2
April 9th, 2008, 04:40 AM
Hello everyone,


If we define global variable and static variable of a class, which are implemented in a DLL. My questions are,

1. All instances of class share the single copy of global variable and static variable of class? If yes, I need to have some synchronization approach on them.

2. Is it safe to use global variable and static (public) variable after DLL unloads?


thanks in advance,
George