Re: Avoid Memory Leakage
- From: Sven Neumann <sven gimp org>
- To: rahul Katariya <rahulkattu yahoo co in>
- Cc: gtk-list gnome org
- Subject: Re: Avoid Memory Leakage
- Date: 02 Dec 2003 15:56:57 +0100
Hi,
rahul Katariya <rahulkattu yahoo co in> writes:
> I am using GTk 2.0 for one project. In this Project
> I am using pango functions , Treeview widget etc for
> the project.
>
> When i run the project,
> After 12-13 hours , X server is crashed , due to
> memory leakage problem.
>
> I have used memprof for detecting memory leaks in
> GTK.
>
> How i avoid the memory leakage problem for pango
> functions , treeview (liststore) or for whole GTK
> 2.0 ?
Simple. Make sure you release all resources you are allocating. You
could use memprof or valgrind to find out where you are leaking
memory. Of course it is possible but very unlikely that the libraries
itself are leaking significantly.
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]