> This sounds like a different issue, possibly unrelated to > fltk. > > When you say 'create and print', what steps are involved? > Are you taking a screenshot with an external tool, or using > fltk's printing support?
I do all of the printing myself thru USB. I create an image in memory using FLTK widgets and then just 'write' the image to the printer. No high level interface is involved. Therefore, I am certain that FLTK is causing memory loss. > > What approach are you using to detect 'available memory'? I read /proc/meminfo from my app. When the app exits, all of the 'lost' memory is recovered. If I do not exit the app and let it drain the memory, eventually it will crash or freeze. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

