[Gtk-sharp-list] Application.Invoke and threads: strange behavior

Todd Berman tberman at off.net
Tue Oct 18 11:44:30 EDT 2005


On Tue, 2005-10-18 at 11:32 -0400, Miguel de Icaza wrote:
> Hello,
> 
> > The execution of the program shows different outputs in the TextView and
> > the console.
> > It seems like the string 'tmp' forgets its last values inside the delegate.
> 
> 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? :)

--Todd



More information about the Gtk-sharp-list mailing list