So App Verifier is throwing this exception. From what I gather, the text of this message is a little misleading. The problem appears to be that the the critical section was created by a thread that is being destroyed before the critical section is destroyed.
It's a relatively simple fix but does anyone know what the ramifications are for having a thread other than the creating one destroy the crticial section? How dangerous is it? Is the concern only that the critical section handle will "leak" or is there a more insidious side-effect?
Some other info:
- App written in C++ (on Windows, of course)
- Critical section created with InitializeCriticalSelection
- Critical section is eventually deleted with DeleteCriticalSection