Re: GUI memory leaks + Insure++ suite

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Sep 06 1999 - 16:39:41 MEST


 Hi Krzysztof,

   thanks for these pointers. I'll investigate and fix the problems.

Cheers, Fons.



Krzysztof Zelazowski wrote:
> 
> Dear ROOTers,
> 
> I'm testing my monitoring program using the Insure++ environment. Using
> Inuse program which is part of this suite, I have noticed the following
> memory leaks using ROOT 2.22/10 on Solaris 5.6.
> 
> (-) Each time we move the mouse pointer within the TGPopupMenu from one
> item to another (without even clicking on them) there is a considerable
> amount of memory being allocated which aparently is never freed.
> The following blocks (in timely order) are causing the problem. In all
> three cases, the stack trace is the same.
> 
> Block's size: 80
> Block's size: 192
> Block's size: 2688
> _________________________________
> _XQueryFont()
> XQueryFont()
> TGX11::GetFontStruct()
> TGHotString::DrawHotChar()
> TGHotString::Draw()
> TGMenuTitle::DoRedraw()
> TGClient::DoRedraw()
> TGClient::ProcessOneEvent()
> TGClient::HandleInput()
> TGInputHandler::Notify()
> TUnixSystem::DispatchOneEvent()
> TSystem::InnerLoop()
> TSystem::Run()
> TApplication::Run()
> main()
> __________________________________
> 
> (-) Each time we open & close a new TRootHelpDialog(), the following
> blocks are not freed
> 
> Block's size: 112
> __________________________________
> XCreateGC()
> TGX11::CreateGC()
> TGTextFrame::TGTextFrame()
> TGTextView::TGTextView()
> TRootHelpDialog::TRootHelpDialog()
> ...my stuff
> TSystem::Run()
> TApplication::Run()
> main()
> ___________________________________
> 
> in addition, the same blocks as in the TGPopupMenu are not freed (see
> stack trace above)
> Block's size: 80
> Block's size: 192
> Block's size: 2688
> 
> How can I fix the problems ?
> 
> Thank you in advance for any suggestions,
> Best regards,
> Krzysztof

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:39 MET