> I think the only thing to try is Stan's suggestion - create just one
> pop-up window at startup (but hidden) and then re-use it for all your
> different pop-up windows throughout the life of your app. There's a
> small overhead in doing that, but it should be fixed and not growing
> over time. Other than that...?
Well, that is what I thought so I tried it:
callback {
static About_Dialog *ad;
if (ad == NULL) ad = new About_Dialog();
ad->show();
while (ad->visible()) Fl::wait();
// delete ad;
}
I verified that "new About_Dialog" is only executed once but the memory leak
still happens at the same rate.
I check memory using mallinfo().
There is something about FLTK I do not undestand or a bug?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk