 X Error of failed request:  BadPixmap 
Nntp-Posting-Host: bruno.cs.colorado.edu
Organization: University of Colorado, Boulder
Lines: 68

Could someone PLEASE give a guess as to why this simple little program
causes a BadPixmap error on the FOURTH  call to XtRelaizeWidget?

Here is the code:


int stoploop = 0;

static void Callback;

main
{
        XtToolkitInitialize;
        XtAppContext app = XtCreateApplicationContext;
        while 
        {
                int junk = 0;
                Display *dis = XtOpenDisplay;

                Widget top = XtAppCreateShell;

                Widget box = XtVaCreateManagedWidget;

                XtAddCallback;

                XtRealizeWidget;
                while 
                {
                        XEvent event;
                        XtAppNextEvent;
                        XtDispatchEvent;
                }
                stoploop = 0;
                XtReleaseGC(top, XDefaultGCOfScreen(XtScreen)); // needed?
                XtDestroyWidget;
                XtCloseDisplay;
        }
}

static void Callback
{
        stoploop = 1;
}


The error I get  is:

X Error of failed request:  BadPixmap 
  Major opcode of failed request:  55 
  Resource id in failed request:  0xd0000d
  Serial number of failed request:  71
  Current serial number in output stream:  85


Please respond via email.  Thanks very, very much!


-- 
-------------------------------------------------------------------------------
David Rex Wood --  -- University of Colorado at Boulder
-------------------------------------------------------------------------------
