• HELP!: No realize class procedure defined

    From benjamin.c.burns@gmail.com@21:1/5 to Flamz on Tue Sep 8 00:07:33 2015
    On Wednesday, December 10, 2003 at 5:24:34 AM UTC+13, Flamz wrote:
    Hi,

    Does anyone know why the following code crashes and gives me the
    error message "No realize class procedure defined"

    XtAppContext app_context;
    int argc = 1;
    char *argv = "customview";


    XtSetLanguageProc (NULL, NULL, NULL);
    Widget top_level = XtVaOpenApplication (&app_context, "Demos",
    NULL, 0, &arg
    c, &argv, NULL,sessionShellWidgetClass, NULL);

    Widget mywidget = XtVaCreateManagedWidget ( "customview",
    xmFrameWidgetClass,
    top_level,
    NULL );


    The crash occurs in XtVaCreateManagedWidget, here's the gdb call
    stack:

    in exit () from /lib/i686/libc.so.6
    in _XtDefaultError () from /usr/X11R6/lib/libXt.so.6
    in XtError () from /usr/X11R6/lib/libXt.so.6
    in XtAppGetErrorDatabaseText () from /usr/X11R6/lib/libXt.so.6
    in _XtDefaultErrorMsg () from /usr/X11R6/lib/libXt.so.6
    in XtAppErrorMsg () from /usr/X11R6/lib/libXt.so.6
    in XtGetClassExtension () from /usr/X11R6/lib/libXt.so.6
    in XtGetClassExtension () from /usr/X11R6/lib/libXt.so.6
    in XtRealizeWidget () from /usr/X11R6/lib/libXt.so.6
    in GetDisplay () from /usr/X11R6/lib/libXm.so.2
    in XmGetXmDisplay () from /usr/X11R6/lib/libXm.so.2
    in XmGetXmScreen () from /usr/X11R6/lib/libXm.so.2
    in GetDefaultThresholdsForScreen () from /usr/X11R6/lib/libXm.so.2
    in GetColors () from /usr/X11R6/lib/libXm.so.2
    in GetDefaultColors () from /usr/X11R6/lib/libXm.so.2
    in XmeGetDefaultPixel () from /usr/X11R6/lib/libXm.so.2
    in _XmBackgroundColorDefault () from /usr/X11R6/lib/libXm.so.2
    in _XtCreateIndirectionTable () from /usr/X11R6/lib/libXt.so.6
    in _XtGetResources () from /usr/X11R6/lib/libXt.so.6
    in XtInitializeWidgetClass () from /usr/X11R6/lib/libXt.so.6
    in _XtCreateWidget () from /usr/X11R6/lib/libXt.so.6
    in _XtUnmergeTranslations () from /usr/X11R6/lib/libXt.so.6
    in XtVaCreateManagedWidget () from /usr/X11R6/lib/libXt.so.6


    Not sure what's going on... it feels like something is not initialized properly.
    tx

    flamz
    flamz3d@hotmail.com

    I realize this message is very, very old. However, the below blog post cites it as the only relevant search result for this error. It's (strangely) something to do with the order in which you've specified your libraries.

    Lest I steal any more of Mr. Rentes's thunder, I direct readers his blog for an account of how he solved the problem:

    http://rentes.github.io/programming/stackoverflow/2015/09/03/Wisdom-of-the-Ancients/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)