home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sun / misc / 5355 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.1 KB

  1. Xref: sparky comp.sys.sun.misc:5355 comp.windows.x.motif:7603 comp.windows.x:19370
  2. Newsgroups: comp.sys.sun.misc,comp.windows.x.motif,comp.windows.x
  3. Path: sparky!uunet!munnari.oz.au!metro!brutus!hughg
  4. From: hughg@brutus.ee.su.oz.au (Hugh Garsden)
  5. Subject: SUN LWP + X + C++
  6. Message-ID: <1992Nov20.035413.11992@ucc.su.OZ.AU>
  7. Sender: hughg@brutus (Hugh Garsden)
  8. Nntp-Posting-Host: brutus.ee.su.oz.au
  9. Organization: University of Sydney, EE Dept.
  10. Date: Fri, 20 Nov 1992 03:54:13 GMT
  11. Lines: 25
  12.  
  13. Standard apologies (FAQ, just been discussed etc.).
  14.  
  15. I have a program written in C++ which uses X/Motif and SUN's light weight
  16. processes (LWP).
  17.  
  18. When I initially tried to run it I got this error -
  19.  
  20.     malloc(0)...core file created
  21.     Error: Cannot perform calloc
  22.  
  23. The error occurred in a call to a Motif function that creates a widget. This
  24. was done before I called any LWP routines. 
  25.  
  26. Checking the man page for malloc, I discovered the file
  27. /usr/lib/debug/malloc.o, which is supposed to provide diagnostics. I linked my
  28. program with this, and the program works! No diagnostics.
  29.  
  30. So, can anyone tell me what's happened here? 
  31.  
  32. -- 
  33. Hugh Garsden        
  34. University of Sydney 
  35. hughg@ee.su.oz.au
  36.  
  37.  
  38.