Representation size 1 must match superclass`s to override

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Representation size 1 must match superclass`s to override

Submitted by Anonymous on Fri, 05/03/2002 - 06:11. Developers
Hi,

Sorry for the re-posting, but here i am giving more information regarding my problem.

My application developed using Motif1.2 is giving the following errors when i link it with Motif2.1 libs in runtime.

Warning Missing charsets in String to FontSet conversion
Warning Cannot convert string "-dt-interface system-medium-r-normal-s*-*-*-*-*-
*-*-*-*" to type FontSet
Warning Missing charsets in String to FontSet conversion
Warning Cannot convert string "-dt-interface user-medium-r-normal-s*-*-*-*-*-*-
*-*-*" to type FontSet
Warning Representation size 1 must match superclass`s to override editable
Bus error(coredump)

What exactly the "Representation size 1 ******" warning means??? How do i go about this???

Here the gdb debugger output.

Warning Cannot convert string "-dt-interface system-medium-r-normal-s*-*-*-*-*-
*-*-*-*" to type FontSet
Warning Missing charsets in String to FontSet conversion
Warning Cannot convert string "-dt-interface user-medium-r-normal-s*-*-*-*-*-*-
*-*-*" to type FontSet
Warning Representation size 1 must match superclass`s to override editable

Program received signal SIGBUS, Bus error.
0x7f52bd10 in _XtCompileCallbackList () from /usr/lib/libXt.3
(gdb) bt
#0 0x7f52bd10 in _XtCompileCallbackList () from /usr/lib/libXt.3
#1 0x7f534840 in CompileCallbacks () from /usr/lib/libXt.3
#2 0x7f5349c8 in xtCreate () from /usr/lib/libXt.3
#3 0x7f535230 in _XtCreateWidget () from /usr/lib/libXt.3
#4 0x7f56b354 in _XtVaCreateWidget () from /usr/lib/libXt.3
#5 0x7f56b5f4 in XtVaCreateManagedWidget () from /usr/lib/libXt.3
#6 0x198ec in AdminPrincTabCreate ()
#7 0x18b34 in AdminCreate ()
#8 0x67a2c in main ()
(gdb)

Please help me in fixing this.

regds,
vara

Anonymous

Hi vara,

If the data is wrong - so will the warning be. First find out why the string can`t be converted (it could be a corrupt widget, corrupt string, or string in an unexpected format).

Did you check in the "Motif Reference Manual" for Motif 1.2 relevant canges?

Also
Check to see that you string is wide char or not and matches widget`s default setting.

XmNvalueWcs
In Motif 1.2, the string value to display in the Text widget, expressed as a
wchar_t *. If XmNvalue and XmNvalueWcs are both defined, XmNvalueWcs
takes precedence. Use XtSetValues() to copy string values to the internal
buffer and use XtGetValues() to return the value of the internal buffer. This
resource cannot be set in a resource file.

Also
/* Bug in Motif 1.2.1 see XmFontListEntryFree() */
page 144,147

Have fun,
John Hendrickson