clyne@redcloud.scd.ucar.edu (John Clyne) (10/06/90)
Hello, sorry if this has been already addressed. There appears to be a bug in XtAppInitialize. I'm running R4 (with all the patches) on a Sun3, SunOS 4.0.3. The following small program demonstrates it clearly. It aborts with an error from malloc_debug(). Don't forget to link against /usr/lib/debug/malloc.o. The error only occurs when "fallback_resources" is not NULL. Is this a known bug? Is there a work around? Please respond by email; There's too many messages posted to this newsgroup for me to keep up with any more :-( thanks much - jc John Clyne (clyne@ncar.ucar.edu) National Center for Atmospheric Research P.O. Box 3000, Boulder, Colorado 80307 (303) 497-1236 -----------------------------cut here-------------------------------- #include <stdio.h> #include <X11/Intrinsic.h> #include <X11/StringDefs.h> #include <X11/Xaw/Cardinals.h> String fallback_resources[] = { "*input: True", NULL, }; void main(argc, argv) char ** argv; int argc; { Widget top; XtAppContext app_con; /* * turn on malloc debugging */ malloc_debug(2); top = XtAppInitialize(&app_con, "Xmenu1", NULL, ZERO, &argc, argv, fallback_resources, NULL, ZERO); }