|
-
Dec 4th, 2007, 05:56 PM
#1
Thread Starter
Member
Problem with cross-thread semaphore release [2005]
Hi all,
I try to use semaphores in .NET.
After using .Waitone in the first thread code, I used .Release in the second thread code in order to resume the suspended first thread. For a couple of times it ran and worked for me, but there is a time when I can't figure out what makes it stop.
The steps as I see them while debugging:
First thread : .Waitone -> I saw it happening.
Second thread : .Release ( First thread suspended )-> I saw it happening;
BUT: The first thread didn't get out of its suspeneded mode.
I can't bring any code here soon, but I'll sure manage with some tips and directions, from anyone of you, which can lead me to a solution for my problem.
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
|