Re: Avoid Memory Leakage



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]