GUI memory leaks + Insure++ suite

From: Krzysztof Zelazowski (Krzysztof.Zelazowski@cern.ch)
Date: Mon Sep 06 1999 - 14:56:03 MEST


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




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