From: Thomas Stammeier Date: 2003-05-05T18:37:11+09:00 Subject: Problem using FXFileStream Hi, I'm having problems using FXFileStream in FXRuby. I want so save an FXImage using the "save" method. Here's the piece of code: FXFileStream.open ("test.jpg", FXStreamSave) do |stream | img.savePixels(stream) end This actually works, but the file is not closed until I quit the application. After "end" the file is still open and no data has been written to it. When I quit the application the file is a valid .jpg file. Is this a bug or is there anything wron with my code? Thanks for any help, Thomas