On 4 May 2008, at 14:46, pushparaj muthu wrote:

>             if(img)
>               {
>                     img->release();
>                     img= 0L;
>               }
>
>              img = new Fl_RGB_Image(ImageName_num, w(),h(), 3,0);
>
> How to do release Fl_RGB image every time that was created


Can you not simply delete the previous widget before you create the a  
one?  Why do you want to delete and re-create the widget on each  
iteration anyway? Can you not create one widget and reuse it for  
subsequent iterations?

Anyway, there's a howto here that addresses some of these points:

http://www.fltk.org/articles.php?L468




_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to