TGMainFrame::CloseWindow()

ROHLFS Reiner (Reiner.Rohlfs@obs.unige.ch)
Fri, 01 May 1998 17:18:58 +0200 (MET DST)


Hi ROOTers,

I want to close a TGMainFrame window and delete the object TGMainFrame to free
the memory. But as soon as I delete the object inside of the method
CloseWindow() (delete this;) I get this error message:

Error in <RootX11Error>: BadWindow (invalid Window parameter) (XID: 121634943)

How can I delete an already closed window?

Cheers Reiner.