home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16744 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.4 KB

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