lwinkenb
asked on
Access violation
I have a global CRITICAL_SECTION object, but when I try to use EnterCriticalSection() with it, I get an access violation.
CRITICAL_SECTION g_criticalSection;
...
//Then later on in a global function I have
EnterCriticalSection(&g_cr iticalSect ion); // Access violation here
memset(g_szClipboard,0,siz eof(g_szCl ipboard));
LeaveCriticalSection(&g_cr iticalSect ion);
What could be the problem?
CRITICAL_SECTION g_criticalSection;
...
//Then later on in a global function I have
EnterCriticalSection(&g_cr
memset(g_szClipboard,0,siz
LeaveCriticalSection(&g_cr
What could be the problem?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're most welcome :o)
ASKER
Thanks jkr.