J
Joe
We really want to use the visual styles in our app but get that stupid
external exception error at the weirdest times.
I call it like this:
static void Main()
{
Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new MyForm() );
}
The problem seems to occur sometimes when DoEvents is called again within
the application but not actually at the call. The exception is throw during
other code execution. Although, if I comment out DoEvents() it will work in
most cases.
I need to call DoEvents in some cases so I can't completely remove it.
Any suggestions?
-Joe
external exception error at the weirdest times.
I call it like this:
static void Main()
{
Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new MyForm() );
}
The problem seems to occur sometimes when DoEvents is called again within
the application but not actually at the call. The exception is throw during
other code execution. Although, if I comment out DoEvents() it will work in
most cases.
I need to call DoEvents in some cases so I can't completely remove it.
Any suggestions?
-Joe