On Wed, Jun 18, 2008 at 06:07:39PM -0700, Martin DeMello wrote:
> Shoes.app :width => 800, :height => 630 do
>
> fill "#2F2"
> rect(0,0,200,200)
>
> keypress {|key|
> fill "#22F"
> rect(0,0,100,100)
> }
>
> end
>
> $ shoes testapp.rb # press a key
> testapp.rb:8: [BUG] Segmentation fault
> ruby 1.8.6 (2007-09-24) [i486-linux]
>
> /usr/local/bin/shoes: line 7: 11630 Aborted
> LD_LIBRARY_PATH=$APPPATH $APPPATH/shoes-bin $@
This also doesn't segfault any more. I allow elements to be added
outside of an `append`, so the script will work as you expect.
_why