I got the mtrace to work and I disabled mmap and now everything gets allocated 
on a heap with the same result (lots ot memory is used up everytime the 
Fl_Help_View is opened with a different page).

Then I looked at the mtrace and it appeared that libz is allocating lots of 
memory and not releasing.
My web pages use many png images so it made sense.
I downloaded the latest libz and libpng and rerun the tests.

Now, the results are the same but the information from mtrace points to 
libstdc++ where new_op() allocates memory that is not released (many times, I 
guess that many things do not get released until exit) and del_op() tries to 
free memory that is not allocated (4 times).
Of course this makes sense when you use new/delete improperly.
All this proves that there is a problem.

I will look at the Fl_Help_View and parents to check how it uses the images 
(png) because it all points to them.
Any other ideas?
Martin

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

Reply via email to