[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Need Help Selecting a GUI
From:       Joao Pedrosa <joaopedrosa () yahoo ! com>
Date:       2004-05-21 13:59:04
Message-ID: 20040521135900.52275.qmail () web12210 ! mail ! yahoo ! com
[Download RAW message or body]

Hi,

You could join us on the Ruby-GNOME2 dev list (it's
used for support as well).

--- vincenzo.piombo@fastwebnet.it wrote:
> 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:
http://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en

Thanks for giving it a whirl.

Cheers,
Joao


	
		
__________________________________
Do you Yahoo!?
Yahoo! Domains – Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic