home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!kithrup!hoptoad!pacbell.com!network.ucsd.edu!usc!elroy.jpl.nasa.gov!ames!olivea!sgigate!sgi!fido!mikey
- From: mikey@sgi.com (Mike Yang)
- Newsgroups: comp.sys.sgi
- Subject: Re: C++ or Motif or X ?
- Message-ID: <1eogr7INNdfa@fido.asd.sgi.com>
- Date: 22 Nov 92 17:43:03 GMT
- References: <1992Nov22.063149.27541@nuscc.nus.sg>
- Organization: Silicon Graphics, Inc.
- Lines: 20
- NNTP-Posting-Host: eukanuba.wpd.sgi.com
-
- In article <1992Nov22.063149.27541@nuscc.nus.sg> isc30092@nusunix1.nus.sg (CHOO GING YANG) writes:
- > I ran into a runtime error when I was on a Silicon Graphics Indigo
- > using C++ 2.1.1, X11R4 and Motif. After much tracing, I discovered
- > the Motif function "XmStringCreateSimple" routine was giving the
- > segmentation fault message.
-
- Either you're calling XmStringCreateSimple with the wrong number or
- kind of arguments (it takes a single NULL-terminated string), or you
- have a memory corruption problem before the call which trashes the
- memory heap.
-
- If it's the latter, look for a double free or memory overrun before
- the call. If you don't notice anything, try using a debugging malloc
- library like WorkShop's libmalloc_cv.a or the package available as:
-
- sgi.com:/sgi/src/malloc-debug.tar.Z
-
- -----------------------------------------------------------------------
- Mike Yang Silicon Graphics, Inc.
- mikey@sgi.com 415/390-1786
-