|
-
November 8th, 2011, 04:38 AM
#1
OpenSemaphore Fails occassionally.
Hi forum.
I have the following code inside one function.
Code:
if ((my_os_resource_handle = OpenSemaphore(SEMAPHORE_ALL_ACCESS,FALSE,"Global\\ABC32$SEMAPHORE$%c")) == NULL)
{
error handling
}
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|