How do I post a message to the main thread from another
thread in the catch block? I am trying to do this:
try
{
//generate an exception from another thread
}
catch()
{
//fire the event to the main thread
}
I get this error:
"An unhandled exception of
type 'System.InvalidOperationException' occurred in
system.dll
Additional information: The action being performed on this
control is being called from the wrong thread. You must
marshal to the correct thread using Control.Invoke or
Control.BeginInvoke to perform this action."
Thanks,
Sweta