? =?ISO-8859-1?Q?=22Patrik_L=F6wendahl_=5BC=23_MVP=5 Jan 23, 2005 #2 You will have to build some kind of message facility. Depending on the threading scenario you could do this in different ways but most of them will include threads polling for messages in some kind of list object or queue object.
You will have to build some kind of message facility. Depending on the threading scenario you could do this in different ways but most of them will include threads polling for messages in some kind of list object or queue object.
A Arild Fines Jan 23, 2005 #3 Chang said: How to send information (or data) between 2 different threads? Click to expand... In the simplest cases, you can just have a class variable that's accessible to both of them. -- Arild AnkhSVN - Subverting Visual Studio .NET: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog IRC: irc://irc.freenode.net/ankhsvn "Gentlemen, you can't fight in here! This is the war room!"
Chang said: How to send information (or data) between 2 different threads? Click to expand... In the simplest cases, you can just have a class variable that's accessible to both of them. -- Arild AnkhSVN - Subverting Visual Studio .NET: http://ankhsvn.tigris.org Blog: http://ankhsvn.com/blog IRC: irc://irc.freenode.net/ankhsvn "Gentlemen, you can't fight in here! This is the war room!"
J Jon Skeet [C# MVP] Jan 24, 2005 #4 Chang said: How to send information (or data) between 2 different threads? Click to expand... See http://www.pobox.com/~skeet/csharp/threads/deadlocks.shtml Half way down the page is a consumer/producer queue.
Chang said: How to send information (or data) between 2 different threads? Click to expand... See http://www.pobox.com/~skeet/csharp/threads/deadlocks.shtml Half way down the page is a consumer/producer queue.