November 8th, 2011, 03:38 AM
OpenSemaphore Fails occassionally.
I have the following code inside one function.
if ((my_os_resource_handle = OpenSemaphore(SEMAPHORE_ALL_ACCESS,FALSE,"Global\\ABC32$SEMAPHORE$%c")) == NULL)
This function gets called many times.
For the first time in years, we have seen the problem in a particular system
This call failed three times over a span of two days and to get the program working, the entire system had to be rebooted.
The GetLastError always returned 2
Details of the system.
Windows 2003 Professional
Any thoughts on the same? .... is there any method that I can reproduce the File not available (Error code 2) situation so that I can understand more ....... in other words, are there any techniques to manipulate, access kernel objects ?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.