Hi. Have a litle(BIG) problem. 1 project 2 classes. 1 thread in each class that I want to share data between them. I put each thread in a for loop. 1 thread is sending and the other is receiving. The queue I use is thread safe.
The Problem is: Thread 1 queue.Enqueue() data and what I can see is, it loads the queue with data, because i look with queue.Count(). When thread 1 loads the queue, It does a queue.Set() on thread 2 that is on queue.WaitOne() but nothing is happening. It doesn't dequeue. I got the same queue class in 2 other threads, used the same technique, and it works fine?????? :((
Best to you all.