Memory Usage



Hi,

I having some problems with GTK+ 2.10.3 using DirectFB
on a MIPS platform. 

When I create a window (nothing in there, just for
testing) and destroy it later, around 60k of memory
remain allocated. 
I read in the FAQ that it is normal for GTK+ to cache
certain memory and that this should be ok, but when I
continue creating/destroying windows my free memory
keeps decreasing until only 3MB remain of my initial
128MB. At that stage the system is extremly slow, but
I can see that memory is freed and allocated and the I
will allways have at least 1MB free. 
Since the system seems to be under heavy pressure to
find memory to free I would like to limit the amount
of memory that GTK+ will use before it starts to free
stuff. Can anybody point me to the appropriate code? I
could not find it in GTK+ or Glib.

Or is this behavior not correct and I really have a
memory leak somewhere?

best regards
Andre


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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