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.