# Crashes Shoes on Linux
Shoes.app :width => 800, :height => 600, :resizable => false do
@canvas = stack( :width => 300, :height => 300 ) do
background blue
@memory_image = image :top => 0, :left => 0,
:width => 200, :height => 200 do
fill red
rect 0, 0, 200, 200
end
end
def crash
@memory_image.clear do
# crash
end
end
every( 3 ) { crash } # trigger the crash after a 3 second pause
end