On 3 May 2008, at 10:12, pushparaj muthu wrote: > I want to display different image on button by passing the string > "ImageName_num" to Fl_RGB_Image function while pressing the button > > I could able to display different image on button. But how to > avoid memory > leakage if every time creating new Fl_RGB_Image by passing > different image
I think the pixmap_browser demo shows how to do that, including the freeing up of previous image buffers. You have looked at that example? _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

