[comp.windows.x] User written widget problem

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (06/13/90)

> ... illustrating
> the management of children's geometry, etc. While I've been able to compile
> this without a problem, I consistently get:

>      X Toolkit Error: Unresolved inheritance operation

This usually occures when you have a new class method in your widget, and a
sbuclass of this widget has asked to inherit it.  The widget that defines 
the method is responsible for replacing the XtInherit<something> with the proper
function.  This is done in the ClassPartInitialize function.  You can check the
R4 Athena widget set for some examples of this.  Offhand I know that the Form
widget and the TextSrc Object both have inheritable class Methods.

Oh yea, This can also happen if you are passing XtInherit to some class method
that can not handle being inherited.


						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213

marbru@auto-trol.UUCP (Martin Brunecky) (06/14/90)

In article <9006121804.AA20224@expo.lcs.mit.edu> kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) writes:
>
>>      X Toolkit Error: Unresolved inheritance operation
>
>This usually occures when you have a new class method in your widget, and a
>sbuclass of this widget has asked to inherit it.  
> .....

     Yeaaah....and it's difficult to find. Try to set breakpoint
     (stop at) _XtInherit()  - that's the guy who puts up the message.


     Looking where you are when it happens should help you find what
     you'v done wrong (yes, I'v shot myself too-).



-- 
=*= Opinions presented here are solely of my own and not those of Auto-trol =*=
Martin Brunecky                   marbru@auto-trol.COM
(303) 252-2499                    {...}ncar!ico!auto-trol!marbru
Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404