Re: gtk memory leaks



Hello,
I have been facing this problem with the memory leak. I have written a gtk application that uses a text widget. The text manipulation takes place in a function call. on repeated invocation of this function call the application gets slow and finally crashes with error "Glib could not allocate x bytes".

I guess, the memory that has been allocated to text widget and the text ( string) is not getting freed and is still there in the heap even after my function has exited. the data on the stack gets freed but what happens to the one's on heap, is there a way ( an API ) for the programmer to free the memory that has been allocated by gtk.

-regards,
sreenidhi.
 
 
 
 

Richard Warren wrote:

gtk_entry_set_text memory leaksI used to see a similar thing in V1.3.9 when
changing the text in a label (see
http://mail.gnome.org/archives/gtk-list/2001-November/msg00107.html for more
info) and was pointed at a known bug
(http://bugzilla.gnome.org/show_bug.cgi?id=59893).

The problem seemed to disappear when I upgraded to V1.3.14 and is still okay
in V2.0.0.  Try upgrading and see if that fixes it.

Regards,
Richards.

----- Original Message -----
From: zze-coframi balr001
To: Mailing list GTK+ (E-mail)
Sent: Wednesday, March 13, 2002 10:18 AM
Subject: gtk_entry_set_text memory leaks

Hello,
I have a window that has six GtkEntry widgets. To update values stored in
those GtkEntry widgets, I have a Glib thread that set new text in my widget
using gtk_entry_set_text .
Each 10 seconds I loose 4 K.  Is there another way to set text in a GtkEntry
in GTK2.0 or is this memory leak corrected in GTK newer version ??

(I'm using Gtk1.3.13)
Thanks for answers
Isabelle

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

-- 
Unix is user friendly ...  It's just picky about it's friends.
 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]