Error in <RootX11ErrorHandler>: BadWindow

From: Ulrich Jost (jost@evalo1.ific.uv.es)
Date: Fri May 14 1999 - 19:22:58 MEST


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



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