Exact Duplicate
I have a dll that creates a global critical section, initializes and use it.
Now a third party application is using / loading the dll more than once which leads to a heap corruption.
The appverifier warns me with a
--> VERIFIER STOP 00000211: pid 0x1470: Critical section is already initialized. <--
Using a global flag to check if the critical section object is already initialized doesn't help, any ideas on accomplishing the same ?
Thanks