|
From: Takaaki T. <tt...@kt...> - 2001-11-26 23:59:59
|
At Mon, 26 Nov 2001 23:03:53 -0500,
Kent Dahl <ke...@st...> wrote:
> require 'rubyfltk.so'
> w = Fltk::Window.new(0,0,200,200)
> b = Fltk::Button.new(0,0,20,20,"X"){|a,b|
> Fltk.paste(w) # (*1)
> }
> w.show
> #Fltk.paste( b) # this crashes (*2)
> Fltk.run # here, pushing the button which calls Fltk.paste(w) goes ok.
> #Fltk.paste( b ) # this crashes too. (*3)
> </CODE>
Though I also tried, (*2) didn't crash and (*3) crashed.
I think b must be destroied when calling Fl::run(), but
Ruby/FLTK treats it as alive widget.
I've fixed this problem. Would you try again?
--
Takaaki Tateishi <tt...@kt...>
|