Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!ncar!redcloud.scd.ucar.edu!clyne From: clyne@redcloud.scd.ucar.edu (John Clyne) Newsgroups: comp.windows.x Subject: Bug in XtAppInitialize Message-ID: <8712@ncar.ucar.edu> Date: 5 Oct 90 20:20:32 GMT Sender: news@ncar.ucar.edu Reply-To: clyne@redcloud.scd.ucar.edu (John Clyne) Organization: Scientific Computing Division/NCAR, Boulder, CO Lines: 48 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 #include #include #include 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); }