K
Kallis
Dear all
I have an thread updating the GUI thread using the BeginInvoke
mechanism. However, in one app where I use this mechanism, it works
fine but in another it does not. The code looks like:
public void OnDisplay(GUIEventArgs args)
{
object[] list = {args};
// We get here without problem. We are still in the other Thread
// Now switch to GUI Thread....
this.BeginInvoke(new SwitchToGUIThreadHandler(DoDisplay),list);
// .. but this call ends up in nirvana
}
private delegate void SwitchToGUIThreadHandler(GUIEventArgs args);
public void DoDisplay(GUIEventArgs args)
{
//Never gets here
}
I have no clue why it does not work in the other application and that
is my problem. I don't even have no clue how to start diagnose it.
Ideas anyone?
BR
Kallis
I have an thread updating the GUI thread using the BeginInvoke
mechanism. However, in one app where I use this mechanism, it works
fine but in another it does not. The code looks like:
public void OnDisplay(GUIEventArgs args)
{
object[] list = {args};
// We get here without problem. We are still in the other Thread
// Now switch to GUI Thread....
this.BeginInvoke(new SwitchToGUIThreadHandler(DoDisplay),list);
// .. but this call ends up in nirvana
}
private delegate void SwitchToGUIThreadHandler(GUIEventArgs args);
public void DoDisplay(GUIEventArgs args)
{
//Never gets here
}
I have no clue why it does not work in the other application and that
is my problem. I don't even have no clue how to start diagnose it.
Ideas anyone?
BR
Kallis