R
Relaxin
How do you handle the cross-thread issues if you don't have a UI?
I'm writing a class that's using the MSMQ and MSMQ notifies the class when a
new message has arrived.
But it notifies you on a new thread.
I need to notify a class on the main thread that a new message has arrived,
but I get the cross-thread exception.
I've tried many different things, including delegates, but I still get this
error.
All of my googling turns up ways to handle it if you have a UI, which I
don't.
Help!!
P.S. Using VS2008, .NET 3.5 on Vista Business.
I'm writing a class that's using the MSMQ and MSMQ notifies the class when a
new message has arrived.
But it notifies you on a new thread.
I need to notify a class on the main thread that a new message has arrived,
but I get the cross-thread exception.
I've tried many different things, including delegates, but I still get this
error.
All of my googling turns up ways to handle it if you have a UI, which I
don't.
Help!!
P.S. Using VS2008, .NET 3.5 on Vista Business.