Problems with Styles (was Re: [gtkada] Tasking with GtkAda for newbies)
Preben Randhol
randhol at pvv.org
Fri Feb 9 15:35:27 CET 2001
Preben Randhol <randhol at pvv.org> wrote on 09/02/2001 (14:26) :
> Now I popped up 20 dialogs and the memory went from 3945 to 4554 then I
> closed all and the memory was still 4554. Then there was a pause and 20
> new dialogs where started. After 4-5 dialogs the memory continued to
> grow until approx 4660. I will check some things and clean up my source
> code a bit and then I'll put it on the net so it is easier to look at
> it.
If I don't change any of the styles the memory is constant, but if I do:
Style := Copy (Get_Style (Notify_Dialog));
-- I commented out the changes
Set_Style (Notify_Dialog.Base_Ebox, Style);
then it grows
but if I change it to:
Gtk_New (Style);
Style := Get_Style (Notify_Dialog.Base_Ebox);
-- I commented out the changes
Set_Style (Notify_Dialog.Base_Ebox, Style);
Then it is steady.
--
Preben Randhol ------------------- http://www.pvv.org/~randhol/ --
«For me, Ada95 puts back the joy in programming.»
More information about the gtkada
mailing list