Hello,
In my appliction I try to pop up a progress dialog box while an
analysis is being run:
//method progress window
public void Run(IWin32Window parent)
{
Thread analysisThread = new Thread(new ThreadStart(runAnalysis));
analysisThread.Start();
ShowDialog(parent);
}
so you see that I've sent the analysis off on another thread. Now
that's fine except in some situaitions I get an OpenGL error. This
seems to be because the analysis code is firing off the odd event,
some of which cause the application behind the modal progress box to
update itself. This doesn't seem very safe - the main loop updating
the main window + events from the new thread.
How can I fix this problem?
Please help, I'm stuck.
Thanks