Re: Avoid Memory Leakage

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

 



Hi,

rahul Katariya <rahulkattu@xxxxxxxxxxx> 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
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux