home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7267 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.3 KB  |  53 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!caen!uwm.edu!rpi!usenet
  3. From: gad@eclipse.its.rpi.edu (Garance A. Drosehn)
  4. Subject: Re: MallocDebug and NS3.0
  5. Message-ID: <dlx1p!m@rpi.edu>
  6. Nntp-Posting-Host: eclipse.its.rpi.edu
  7. References: <fxv1kg#@rpi.edu>
  8. Date: Wed, 18 Nov 1992 03:48:41 GMT
  9. Lines: 42
  10.  
  11. In an earlier article, I wrote:
  12. > Has anyone tried to use MallocDebug under NeXTSTEP 3.0?
  13. > I used it (once) under 2.x and it seemed to work OK.  I wanted to use
  14. > it on a NS3.0 application, and if I link in the MallocDebug library
  15. > then the program quits almost as soon as it starts.  No error messages
  16. > or anything, it just quits.
  17. > Am I missing something?
  18. > The application that I'd like to MallocDebug is KPerfMon.app.  Maybe
  19. > that particular app is doing something that MallocDebug isn't prepared
  20. > to handle?
  21.  
  22. Thanks go to Tom McSorley for pointing me in the right direction.
  23. He sent me a message which (basically) said:
  24. | I experienced a similar problem to that indicated above.  All worked
  25. | well under 2.x (not verifiable).  The application ran fine without
  26. | the MallocDebug lib linked in under 3.0, however with the MallocDebug
  27. | lib linked in, the application SEGMENTATION FAULTED immediately.
  28. | Debugging this condition showed that the problem occurred before it
  29. | ever got to any of my code -- therefore the problem was within the
  30. | NIB file load and initialization.
  31. | ... What it turned out to be was that the User Interface Guy used
  32. | some fonts in his NIB file construction that were not present on the
  33. | other system.  When we changed the fonts back to a system default font
  34. | the SEGMENTATION FAULT disappeared.
  35.  
  36. In my case KPerfMon had two NIB files.  I removed an (unused) Services menu  
  37. from the first, and fiddled around with the fonts in the second one (though  
  38. I don't think I actually *changed* any fonts).  MallocDebug then worked like  
  39. a charm.
  40.  
  41. I don't know if it was the fiddling I did, or if the NIB files just needed  
  42. to be saved under a NS3.0 system...  In any case, I hope this info proves  
  43. useful to anyone else who runs into a similar problem.  MallocDebug is  
  44. pretty useful, now that I have the hang of it...
  45.  
  46. --
  47. Garance Alistair Drosehn     =     gad@eclipse.its.rpi.edu
  48. ITS Systems Programmer            (handles NeXT-type mail)
  49. Rensselaer Polytechnic Institute;           Troy NY    USA
  50.