Re: [gtk-list] memory profiling and gtk_init()
- From: Lars Hallberg <lah micropp se>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] memory profiling and gtk_init()
- Date: Wed, 24 Nov 1999 16:21:24 +0100
On Wed, Nov 24, 1999 at 02:23:49PM +0100, Rasmus Andersen wrote:
> Hi.
>
> I'm working on gPhoto (which uses GTK) and have tried a couple of times to
> memory leak detection with various programs. My problem is that I'm getting
> a lot of valid GTK stuff from gtk_init() reported because it isn't deallo-
> cated before program exit.
It's worse, glib alocate shunks of memory for stuf like lists that is not
freed ether. But fortunate, glib have a reporting funktion built in so You
can report the amount of used memory at exit. Then You can comper that with
what Your tools report. As GTK uses glob You likly to track gtk_init()
stuf the same way.
This is slightly anoying when debuging but gane speed and stability (no
strange segfault at exit)
I don't rememnber any details but for start You have to recompile glib
with MEMOERY_PROFILING (or the like) enabvled.
HTH /Lars
--
Lars Hallberg Micro++ www.micropp.se/
Freeware * C/C++ * Python * Linux * Debian * HTML * Javascript
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]