On 2 Nov 2007, at 16:13, mkajdas.mkprod wrote: >> 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.
Can you post an STR for this, and attach a patch file showing your changes, just in case anyone else needs this, or we decide to make it "permanent". _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

