Thank you very much Albrecht for taking the time to check my code.

I agree with you that it looks like some memory overwriting. But as I was 
unable to find an example of a menubar built up with add(), I started 
suspecting that my menubar code was wrong.
On the other hand, the program was running perfectly. Then I wanted to 
inactivate a menu item, and the problems showed up.

I did check it with valgrind, and I only get messages of unreclaimed memory at 
program exit:

==3580== HEAP SUMMARY:
==3580==     in use at exit: 2,075,618 bytes in 3,043 blocks
==3580==   total heap usage: 82,762 allocs, 79,719 frees, 29,561,251 bytes 
allocated

but I cannot track the offending messages to my code, but to classes like 
Fl_File_Chooser, etc. It probably means that I did not understand the basics 
and fltk is forced to forget some memory on program exit.

I'm compiling/linking against fltk 1.3 (last available tar.gz) and running on 
ubuntu, 64 bits. I'm not using fluid.

I will start removing "features" of my program to find out which one is hurting.

Thanks again!

Pablo

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

Reply via email to