Related to the BaseClass stuff. We cannot treat the extension data like a
normal widget. The XtAddCallback on line 230 of Xme.c needs to be changed. grep
for _XtAddCallback in Vendor and make the one in Xme.c look like it.


On 04-Aug-00 at 10:09, Alexander Mai ([EMAIL PROTECTED])
wrote: > Some weeks ago I reported about some sucess with mxapps, IIRC
especially
> mxftp was quite ok. This has changed ...
> It crashes upon startup :-(
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x4021abe2 in FetchInternalList () from /usr/X11R6/lib/libXt.so.6
> (gdb) bt
> #0  0x4021abe2 in FetchInternalList () from /usr/X11R6/lib/libXt.so.6
> #1  0x4021ad67 in XtAddCallback () from /usr/X11R6/lib/libXt.so.6
> #2  0x401b2e60 in XmeAddFocusChangeCallback (w=0x80a9c88, 
>     cp=0x401a1ff8 <ShellFocusMovedCB>, udata=0x80c2a60)
>     at /u/mai/compile/lesstif/lesstif/lib/Xm-2.0/Xme.c:230
> #3  0x401a06cf in CreatePulldown (w=0x80c2a60)
>     at /u/mai/compile/lesstif/lesstif/lib/Xm-2.0/ComboBox.c:1375
> #4  0x401a0317 in CreateChildren (w=0x80c2a60)
>     at /u/mai/compile/lesstif/lesstif/lib/Xm-2.0/ComboBox.c:1289
> #5  0x401a15b1 in Initialize (request=0xbfffec80, c_new=0x80c2a60, 
>     args=0xbffff094, num_args=0xbfffeba0)
>     at /u/mai/compile/lesstif/lesstif/lib/Xm-2.0/ComboBox.c:1964
> #6  0x40221bb5 in CallInitialize () from /usr/X11R6/lib/libXt.so.6
> #7  0x402220d2 in xtCreate () from /usr/X11R6/lib/libXt.so.6
> #8  0x402225bf in _XtCreateWidget () from /usr/X11R6/lib/libXt.so.6
> #9  0x40222640 in XtCreateWidget () from /usr/X11R6/lib/libXt.so.6
> #10 0x401a2a08 in XmCreateComboBox (parent=0x80c1700, 
>     name=0x400575e4 "ComboBox", arglist=0xbffff094, cnt=6)
>     at /u/mai/compile/lesstif/lesstif/lib/Xm-2.0/ComboBox.c:2985
> #11 0x4003ce3f in akComboBox::akComboBox ()
>    from /u/mai/lib/libAppKit.so
> #12 0x8058e5a in mxFtp::createWorkArea (this=0x808e650, parent=0x80b1000)
>     at mxFtp.C:330
> #13 0x40033559 in akWindow::initialize ()
>    from /u/mai/lib/libAppKit.so
> #14 0x40032e3e in akApp::initialize () from /u/mai/lib/libAppKit.so
> #15 0x4003490b in main () from /u/mai/lib/libAppKit.so
> 
> The libXm.2 code in question might indicate that recent changes
> are not yet reflected within 2.0?
> 
> 215         XmWidgetExtData extData;
> 216
> 217         if(!XmIsVendorShell(w))
> 218         {
> 219             XmeWarning(w, _XmMsgProtocols_0000);
> 220             return;
> 221         }
> 222
> 223         extData = _XmGetWidgetExtData(w, XmSHELL_EXTENSION);
> 224         if (extData == NULL)
> (gdb) 
> 225         {
> 226             XmeWarning(w, "Can not find Vendor Shell Extention Data.");
> 227             return;
> 228         }
> 229
> 230         XtAddCallback(extData->widget, XmNfocusMovedCallback, cp,
> udata); 
> 
> -- 
> Alexander Mai
> [EMAIL PROTECTED]
> 
> 
> 

Reply via email to