Re: memory leak in gtk

2007-11-30 Thread Michael L Torrie
c f wrote: > > I have checked the GTK documentation and it states that gtk_exit free > all resources allocated for GTK+. gtk_exit is depricated and using > exit is recommended. I have tested both but non of them improved the > situation (still more than 5000 leaks). This is normal. GTK is not go

Re: {Spam?} Re: memory leak in gtk

2007-11-25 Thread Emmanuele Bassi
On Sat, 2007-11-24 at 10:09 +0100, Vincent Torri wrote: > >> From what I've heard about memory leaking, this is not unique to the > > GTK library. If the rumours are correct, applications like `ls` are > > notorious for leaking memory, safe in the knowledge that the OS will > > clean up after th

Re: memory leak in gtk

2007-11-24 Thread Mike
Junior Polegato - GTK+ & GTKmm wrote: > Vincent Torri escreveu: >> On Sat, 24 Nov 2007, Junior Polegato - GTK+ & GTKmm wrote: >>> Vincent Torri escreveu: On Sat, 24 Nov 2007, Michael Lamothe wrote: >> From what I've heard about memory leaking, this is not unique to the > GTK library.

Re: {Spam?} Re: {Spam?} Re: memory leak in gtk

2007-11-24 Thread Junior Polegato - GTK+ & GTKmm
Vincent Torri escreveu: > On Sat, 24 Nov 2007, Junior Polegato - GTK+ & GTKmm wrote: >> Vincent Torri escreveu: >>> On Sat, 24 Nov 2007, Michael Lamothe wrote: > From what I've heard about memory leaking, this is not unique to the GTK library. If the rumours are correct, applications like

Re: {Spam?} Re: {Spam?} Re: memory leak in gtk

2007-11-24 Thread Vincent Torri
On Sat, 24 Nov 2007, Junior Polegato - GTK+ & GTKmm wrote: > Vincent Torri escreveu: >> On Sat, 24 Nov 2007, Michael Lamothe wrote: >> From what I've heard about memory leaking, this is not unique to the >>> GTK library. If the rumours are correct, applications like `ls` are >>> not

Re: {Spam?} Re: memory leak in gtk

2007-11-24 Thread Junior Polegato - GTK+ & GTKmm
Vincent Torri escreveu: > On Sat, 24 Nov 2007, Michael Lamothe wrote: > >>> From what I've heard about memory leaking, this is not unique to the >>> >> GTK library. If the rumours are correct, applications like `ls` are >> notorious for leaking memory, safe in the knowledge that the OS w

Re: {Spam?} Re: memory leak in gtk

2007-11-24 Thread Vincent Torri
On Sat, 24 Nov 2007, Michael Lamothe wrote: >> From what I've heard about memory leaking, this is not unique to the > GTK library. If the rumours are correct, applications like `ls` are > notorious for leaking memory, safe in the knowledge that the OS will > clean up after them. and if someone

Re: memory leak in gtk

2007-11-23 Thread Michael Lamothe
>From what I've heard about memory leaking, this is not unique to the GTK library. If the rumours are correct, applications like `ls` are notorious for leaking memory, safe in the knowledge that the OS will clean up after them. Excellent work on the enable-debug switch, I'll have to keep this ema

Re: memory leak in gtk

2007-11-23 Thread c f
Hi, In my opinion the definition what you have given describes well when a memory leak can cause serious problems but I would call memory leak,any dynamically allocated memory what is not freed when you are done with it . However it is true that OS will cleanup everything when the program termina

Re: memory leak in gtk

2007-11-22 Thread Tor Lillqvist
> > I have used mtrace to check for memory leaks. In this simple > > application there are more than 5000 memory allocation which is not > > freed. Note that just a dynamic memory allocation that isn't freed before the application terminates is not a leak, in case there still exists a way to acces

Re: memory leak in gtk

2007-11-21 Thread Brian J. Tarricone
On Wed, 21 Nov 2007 20:15:25 +0100 c f wrote: [...] > I have used mtrace to check for memory leaks. In this simple > application there are more than 5000 memory allocation which is not > freed. See: http://www.gtk.org/faq/#AEN703 > I have checked the GTK documentation and it states that gtk_ex

Re: memory leak in gtk

2007-11-21 Thread c f
Hi Michael, Thanks for your suggestion. Actually I have not mentioned but I also tried to decrease the ref count of the mainWindow (just to be sure). In theory it is already destroyed at this point as the main quit is called in the destoyed handler of the main window. In that case (unref), GTK sh

Re: memory leak in gtk

2007-11-21 Thread Michael Lamothe
I'm no master profiler but I think that you'll want to put a gtk_widget_destroy(mainWindow); after the gtk_main();. You really don't need to do this because it will be destroyed when the application terminates 0.01 seconds after that line. But if you feel you must then go for it. I also like to

memory leak in gtk

2007-11-21 Thread c f
Hi, I have made a simple application with a top level window: " #include #include gboolean OnDeleteHandler(GtkWidget *sender, GdkEvent *event, gpointer data) { return FALSE; } void OnDestroyHandler(GtkWidget *sender, gpointer data)