[Gtk-sharp-list] Application.Invoke and threads: strange behavior
amartinez at atc.ugr.es
amartinez at atc.ugr.es
Tue Oct 18 11:05:25 EDT 2005
Hi,
Attached is a very little Gtk# example which uses a Thread to execute
the process 'ping 127.0.0.1 -c 7' and refresh both the standard output and
a TextView.
It can be compiled with mcs or gmcs with
$ mcs -pkg:gtk-sharp-2.0 test.cs
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.
I use mono and mcs version 1.1.9.2 and Gtk# version 2.3.92 over Debian Sid.
What's the reason of this strange behavior?
Regards,
--
Antonio Martínez Alvarez
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cs
Type: text/x-csharp
Size: 1769 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20051018/a2419522/test.bin
More information about the Gtk-sharp-list
mailing list