Submitted by Anonymous on Thu, 06/28/2001 - 18:57. Developers
Hi Every body,
I have compiled one program and while running i am getting the
follwoing
error
X Error of failed request BadWindow (invalid Window parameter)
Major opcode of failed request 19 (X_DeleteProperty)
Resource id in failed request 0x0
Serial number of failed request 82
Current serial number in output stream 87
Can any one tell how to solve this? or why this occurs? I am suing
redhat 7.0 with open motif 2.1.30.
Regards,
Saji R
This is a case when the error message is actually useful. There`s a NUL window ID in a property-change request. You can run the program synchronously and set a breakpoint in the error handler (_XDefaultError) to track this down.
But, i could execute the same program in a solaris machine..same code...i build it in the solaris..
Well, that`s why it`s particularly useful to debug it! You may be incorrectly depending on a timing-related quirk of one X server or one system. Or you are using a destroyed widget, with different results on the two systems.
Hi there,
I am having the same problem that SAJI_R is having.
The error message I get is
X Error of failed request BadWindow (invalid Window parameter)
Major opcode of failed request 19 (X_DeleteProperty)
Resource id in failed request 0x0
Serial number of failed request 407
Current serial number in output stream 413
I am using RH7.1 with openmotif 2.1.30-8. I also experienced
this problem with 2.1.30-4_MLI. I have been using this exact
same code with RH6.2 (although I can`t tell you the version
of motif or lesstif I was using) without a problem.
The line of code that this happens on is
m_wMainPanel = XtVaCreateManagedWidget( "MainPanel",
xmFormWidgetClass,
topWidget,
NULL );
topWidget is not a null pointer, it is 0x815cad0. Does anyone
know how I can track down how this Widget gets turned into a Bad
Window? Does it have to be realized first or something?
The interesting thing is if I switch this widget to be an
Xaw3d formWidgetClass, there is no problem. However, then the
next time I touch the motif library with this line the same
kind of error occurs
Widget wPopupPanel = XtVaCreateManagedWidget( "PopupPanel",
xmRowColumnWidgetClass,
m_wMainPanel,
NULL );
Again, m_wMainPanel looks like a very valid pointer from what
I can see under gdb.
I freely admit that I may be doing something that is improper and
for some reason have been getting away with it for a long time...
but I have no idea where to start on figuring out where to go
from here. Any advice would be much appreciated!
(I would really really hate to have to recode everything in
Xaw3d ( )
Don Murray
donm@cs.ubc.ca
I am using RedHat Linux 7.0 with OpenMotif 2.1.3.
I noticed that some applications that previously worked on Solaris now fail with Window Error 19. These applications were built with Makefiles that did NOT include the Xm library. Once this was added to the Makefile, the Invalid Window error went away. I don`t know how the applications built before without Xm but they work now and that makes me happy. I hope this solves your problem too.
-Adam