Hi.
I'm trying to paint in DC context:

# ---------------------------------------------------

frame = Frame.new(nil, -1, "")

frame.paint { |dc|

    dc.draw_line(50, 50, 100, 100)                                #  for 
this I don't see the line

    dc.draw_bitmap(Bitmap.new('c:\img.bmp'),0,0)        # and for this 
program crashes

}

# -----------------------------------------------------------

Does anyone know why is this happening ?

Thanks.