[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::motif

Title:"OSF/Motif" is a trademark
Notice:MOTIF kit note in 7.*
Moderator:GOOEY::GRASS
Created:Mon Aug 07 1989
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5973
Total number of notes:24620

5914.0. "Link problems with V1.2-4" by STKHLM::BELUNDBERG (Ohh, I like it...) Fri Jan 10 1997 09:02

T.RTitleUserPersonal
Name
DateLines
5914.1H2SO4::GERSBACHEdwin Gersbach MCS SwitzerlandMon Jan 13 1997 03:5519
5914.2GRIM::MESSENGERBob MessengerTue Jan 14 1997 11:1529
5914.3STKHLM::BELUNDBERGOhh, I like it...Tue Feb 04 1997 08:56113
    
    
    
    	Hello, back from the flu...
    
    	Thanks for your replys. The link warnings probably comes from
    	one of the sharables used by Omtool Image Express like pointed
    	out in .1.
    
    	Now I'm looking into the runtime crash.
    
	When MOTIF 1.2-4 has been installed on our system, our Motif
	based application crashes in a XmNmodifyVerifyCallback when
	XmTextVerifyCallbackStruct pointer is not initialized.

	This routine worked with MOTIF 1.1 and 1.2-3. (I deinstalled
    	1.2-4 and reinstalled 1.2-3, and after the reinstallation the
    	application still crashes as with 1.2-4. By the way, the backup
    	tape was destroyed by a bad tape station, so there are some
        problems going back).

	First time the callback routine is called in the application it
    	works OK. The second time it crashes since the incoming argument
    	of the type XmNmodifyVerifyCallback is not initialized.

	- - - - - -

	In SYS$COMMON:[DECW$INCLUDE]XM.H;1:

typedef struct
{
    int reason;
    XEvent  *event;
    Boolean doit;
    long currInsert, newInsert;
    long startPos, endPos;
    XmTextBlock text;
} XmTextVerifyCallbackStruct, *XmTextVerifyPtr;

/* XmTextBlockWcs's are used in 1.2 modifyVerifyWcs callbacks for Text[Field]
 * widgets. */

typedef struct {
    wchar_t *wcsptr;            /* Pointer to data. */
    int length;                 /* Number of characters (not bytes) of data. */
} XmTextBlockRecWcs, *XmTextBlockWcs;


	- - - - - - -

	When running the application:


	XmTextVerifyCallbackStruct cbd;

	if ( cbd->text->length ==0)

%SYSTEM-F-ACCVIO, access violation, reason mask=01, virtual address=354F2B83, PC
=00013628, PSL=03C00000

DBG> sho call
 module name     routine name                     line       rel PC    abs PC
*TRI_IN          InTextModCb                     34920      00000028  00013628
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  002FCFA8
 SHARE$DECW$XMLIBSHR12
                                                            00000000  0035DDE8
 SHARE$DECW$XMLIBSHR12
                                                            00000000  0035F669
 SHARE$DECW$XMLIBSHR12
                                                            00000000  00355BD0
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  00312E81
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  00313206
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  003138F8
*TRI_IN          InPopupCb                       35005      000001C4  000138D4
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  002FCEED
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  00308BDA
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  00308CBF
*TRI_FM          FmIndexCb                       33173      000000AF  0000D63B
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  002FCFA8
 SHARE$DECW$XMLIBSHR12
                                                            00000000  00346C31
 SHARE$DECW$XMLIBSHR12
                                                            00000000  00346A5D
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  00305400
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  00305CC6
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  00305D35
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  002FEEAB
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  002FF5C4
 SHARE$DECW$XTLIBSHRR5
                                                            00000000  002FF8FB
*TRI             main                            50613      000012AA  0000B1B6

    
    
    So something seems to have changed when initializing callback structs.
    
    Maybe time for a more official error report?
    
    Regards
    BBL
5914.4H2SO4::GERSBACHEdwin Gersbach MCS SwitzerlandWed Feb 05 1997 04:4112
Just as a hint:

It seems that 'text' points to a string rather than to a XmTextBlock.

>> virtual address=354F2B83

$ a[0,32]=%X354F2B83
$ sh sym a
  A = ".+O5"
$

Edwin