Re: [gtk-list] memory leak GtkText



On 7 May 1998, Teemu Kalvas wrote:

> Hello
> 
> While writing a program continuosly viewing the end of a relatively
> fast growing log file I noticed a problem with GtkText: the program
> was taking more and more memory even though the size of the text
> widget was bound and lines were deleted from the beginning as new ones
> were written to the end.
> 
> I tested this with a shorter program which just repeatedly puts random
> lines into the text widget and then takes them away, and it seems that
> the memory use of the program rises every time text is added but never
> goes down when text is removed.  So I conclude that there must be a
> memory problem with GtkText.
> 
> I used gtk 1.0.0 on Linux.

gtk 1.0.0 has a known memory leak with timout and idle functions.
if there's any chance those leaks are caused by the main loop,
it would be nice if you could retest your program with gtk 1.0.1 and
post the sources.

> 
> -- 
> Teemu Kalvas
> 

---
ciaoTJ



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