> What would be the best way to clear cache? OK, I fixed the problem by adding in Fl_Help_View.cxx: img->release(); at the end of every code block (3 blocks) that calls: img->get_image(...);
Files Fl_File_Chooser2.cxx and Fl_File_Icon2.cxx do exactly the same thing already. This fix does exactly what I want because of my limited resources I cannot afford to cache every image Fl_Help_View displays. My images are already in RAM disk so there is no speed penalty. Once I understood what is going on, the fix is obvious. I hope this helps people in similar situation. Martin _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

