[Gtk-sharp-list] Application.Invoke and threads: strange behavior
    Miguel de Icaza 
    miguel at ximian.com
       
    Tue Oct 18 12:17:02 EDT 2005
    
    
  
Hey,
> > The problem is that the value of "tmp" is shared (captured) and as soon
> > as you queue the delegate, tmp will be reloaded with the next value from
> > ReadLine.
> > 
> 
> So could this be a 2.0 usecase for an Application.Invoke that takes a
> defined parameter? :)
He could use the current overload that takes a sender and args:
	public static void Invoke (object sender, EventArgs args, EventHandler d)
Which is not as cute as your late-bound overload.
Miguel.
    
    
More information about the Gtk-sharp-list
mailing list