HeetackYoon / pandorasbox3

Automatically exported from code.google.com/p/pandorasbox3
0 stars 0 forks source link

CrossThread Operation in Splash screen #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Better fix it in the SetActionText method:

public void SetActionText( string action )
{
// Now it is threadsave for every call from everywhere. You can remove the
old fix ;)
    if (this.InvokeRequired)
    {
        this.BeginInvoke((MethodInvoker)delegate { SetActionText(action); });
        return;
    }
    if ( m_ActionLabel != null )
    {
        m_ActionLabel.Text = action;
        Update();
    }
}

Original issue reported on code.google.com by Tarion86 on 22 Feb 2009 at 11:19

GoogleCodeExporter commented 8 years ago

Original comment by Tarion86 on 23 Feb 2009 at 3:36

GoogleCodeExporter commented 8 years ago

Original comment by Tarion86 on 20 Jul 2010 at 8:50