J
jorge santiago
Hi,
I'm coding an application with Ruby and RubyTk that draws a huge
amount of lines on a TkcCanvas. I split the drawing code in a new
thread so the main interface remains responsive to the user to cancel
the operation at any time.
The problem is when I click the "stop drawing" button which is bound
to a "proc { @drawing_thread.exit }" I *often* (not always) get the
following error:
/usr/local/rubytk/lib/ruby/1.8/tk.rb:1537:in `mainloop': killed thread
(ThreadError)
from /usr/local/rubytk/lib/ruby/1.8/tk.rb:1537:in `mainloop'
from plfg.rb:250:in `initialize'
from plfg.rb:841
I'm on Ubuntu Edgy 6.10 with ruby-1.8.4 compiled from source with
--enable-pthread
I believe it has something to do with some system library or the
compilation flags, because in windows using the one click installer
and the activetcl 8.4 the application never seems to crash like that.
Thanks in advance for your help,
jorge santiago.
I'm coding an application with Ruby and RubyTk that draws a huge
amount of lines on a TkcCanvas. I split the drawing code in a new
thread so the main interface remains responsive to the user to cancel
the operation at any time.
The problem is when I click the "stop drawing" button which is bound
to a "proc { @drawing_thread.exit }" I *often* (not always) get the
following error:
/usr/local/rubytk/lib/ruby/1.8/tk.rb:1537:in `mainloop': killed thread
(ThreadError)
from /usr/local/rubytk/lib/ruby/1.8/tk.rb:1537:in `mainloop'
from plfg.rb:250:in `initialize'
from plfg.rb:841
I'm on Ubuntu Edgy 6.10 with ruby-1.8.4 compiled from source with
--enable-pthread
I believe it has something to do with some system library or the
compilation flags, because in windows using the one click installer
and the activetcl 8.4 the application never seems to crash like that.
Thanks in advance for your help,
jorge santiago.