x error of failed request badpixmap invalid pixmap parameter could someone please give a guess as to why this simple little program causes a badpixmap error on the fourth bizarre call to xtrelaizewidget here is the code int stoploop static void callback widget xtpointer xtpointer main xttoolkitinitialize xtappcontext app xtcreateapplicationcontext while int junk display dis xtopendisplay app null null null null junk null widget top xtappcreateshell null null applicationshellwidgetclass dis null widget box xtvacreatemanagedwidget x xmpushbuttonwidgetclass top xmnheight xmnwidth null xtaddcallback box xmnactivatecallback callback null xtrealizewidget top while stoploop xevent event xtappnextevent app event xtdispatchevent event stoploop xtreleasegc top xdefaultgcofscreen xtscreen top needed xtdestroywidget top xtclosedisplay dis static void callback widget xtpointer xtpointer stoploop the error i get yes the th time i try to show the box is x error of failed request badpixmap invalid pixmap parameter major opcode of failed request x creategc resource id in failed request xd d serial number of failed request current serial number in output stream please respond via email thanks very very much note i realize this program does nothing useful its an ultra trivialized version fo a real library routine david rex wood davewood cs colorado edu university of colorado at boulder
