[Mono-list] Opening a form on a new thread, called from C API
valdiorn
valdiorn at gmail.com
Tue May 3 14:59:09 EDT 2011
I confirmed that it's the act of opening a form on the new thread that is
causing the trouble.
Doing this, the problem is "solved".
public static void startThread()
{
f = new Form(); // create the form on the original thread
Thread t = new Thread(new ThreadStart(dialog));
t.Start();
}
static Form f;
public static void dialog()
{
Application.Run(f);
}
However, I need to understand whether this is a bug in Mono, or something
that I'm doing wrong!
--
View this message in context: http://mono.1490590.n4.nabble.com/Opening-a-form-on-a-new-thread-called-from-C-API-tp3491548p3493271.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list