Re: memory leak GtkText




Teemu Kalvas <chery@s2.org> writes:

> The memory used after the add/remove 10k chararters -cycle does not
> always go up, so it seems that the behaviour is data dependent -- it
> might have something to do with the line start cache maybe, as the
> actual line lengths used are randomised in that test program.
> 
> With the original program the memory amounts lost were a bit more
> severe, it lost about 30M into hyperspace before I noticed something
> was going wrong.  I estimate that by that time it had done about
> 10000-20000 cycles like this.
> 
> And no, I do not use timeouts or an idle function in this program.

However, GTK does use timeouts and idle functions internally, for
instance, a timeout is used to do autoscrolling when you drag off the
bottom and top of the text. So, while it is quite possible there is a
memory in GtkText, before I spend too much time trying to track it
down, could you try and see if the same thing still occurs with 1.0.1?

                                        Owen



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