J
Jon Skeet [C# MVP]
Thanks you guys... I was stupid ^^...
I could pull out update like follow, the code work well Thanks.. a
loooooooooooooooooot
<snip>
No, it's still not as good as it could be:
1) You should have *one* thread dequeuing things, not a new one every
time a message is added. The code you posted in the third post of the
thread had this correctly.
2) You're using Queue.Count outside the lock - again, this part was
correct in the older code.
In short, go back to the old code and just move the call to update to
outside the lock block.