Error in <RootX11ErrorHandler>: BadWindow

Ulrich Jost (jost@evalo1.ific.uv.es)
Fri, 14 May 1999 19:22:58 +0200 (CET)


Hi,

when I return in my program from the root event loop, I'd like to close
the TGMainFrame window. But either it doesn't close or, using
CloseWindow(), I get on the next pass

Error in <RootX11ErrorHandler>: BadWindow (invalid Window parameter) (XID:
79691955)
Error in <RootX11ErrorHandler>: BadWindow (invalid Window parameter) (XID:
79691906)

A code fragment inside the loop looks like this:

RootWindow *rootwin = new RootWindow(gClient->GetRoot(), 450, 450);
// derived from TGMainFrame
rootApp->Run(kTRUE);
rootwin->CloseWindow(); // closes the window, but gives warning on
next pass
delete rootwin; // doesn't close the window

Thanks, Ulrich