Joao Pedrosa write:
I am running a fresh built version of Ruby compiled
with MinGW:
C:\msys\1.0\home\ruby-gnome2\gtk\sample\gtk-demo>ruby
-v
ruby 1.8.2 (2004-05-19) [i386-mingw32]
And a fresh built version of the latest Ruby-GNOME2
CVS version, and the stability problems that I was
having simply disappeared.
…
You would do me a great favor if you tested it to see
if at least part of the stability problems that you
have been having are solved as well. And I extend this
invitation to anyone that has been having some
Ruby-GNOME2 stability problems on Windows.
I tested my prog against this new release and it is far more stable then
before, but still crashes after a while.
If it can help, it is basically an app that asks a server for some data
and completely refreshes a treeview when the answer from the server arrives.
something like
···
@model = Gtk::TreeStore.new(String, String)
…
Thread.new {
…
data = socket.recv(…)
@model.clear
parse(data).each { |el|
iter = @model.append()
iter.set_value(0, el.id)
iter.set_value(1, el.type)
}
}
it crashed in the @model.append()
Vincenzo
Hi,
You could join us on the Ruby-GNOME2 dev list (it’s
used for support as well).
Joao Pedrosa write:
I am running a fresh built version of Ruby compiled
with MinGW:
C:\msys\1.0\home\ruby-gnome2\gtk\sample\gtk-demo>ruby
-v
ruby 1.8.2 (2004-05-19) [i386-mingw32]
And a fresh built version of the latest Ruby-GNOME2
CVS version, and the stability problems that I was
having simply disappeared.
…
You would do me a great favor if you tested it to
see
if at least part of the stability problems that you
have been having are solved as well. And I extend
this
invitation to anyone that has been having some
Ruby-GNOME2 stability problems on Windows.
I tested my prog against this new release and it is
far more stable then
before, but still crashes after a while.
If it can help, it is basically an app that asks a
server for some data
and completely refreshes a treeview when the answer
from the server arrives.
something like
@model = Gtk::TreeStore.new(String, String)
…
Thread.new {
…
data = socket.recv(…)
@model.clear
parse(data).each { |el|
iter = @model.append()
iter.set_value(0, el.id)
iter.set_value(1, el.type)
}
}
it crashed in the @model.append()
I use TreeView extensively and I don’t get any crashes
anymore. Your crashes could be related to the use of
Threads, because it’s far more problematic on Windows
where it could result in deadlocks.
The rule on Windows is to have only one thread update
the GUI.
Then again, if you could provide a minimum working
example we could test it.
Join us at:
Thanks for giving it a whirl.
Cheers,
Joao
···
— vincenzo.piombo@fastwebnet.it wrote:
Do you Yahoo!?
Yahoo! Domains Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer