home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / lisp / mcl / 2099 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  884 b 

  1. Path: sparky!uunet!olivea!apple!cambridge.apple.com!moon
  2. From: moon (David A. Moon)
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: Re: Calling MPW C code: is malloc safe?
  5. Message-ID: <9301252349.AA02097@cambridge.apple.com>
  6. Date: 25 Jan 93 23:52:19 GMT
  7. Sender: owner-info-mcl@cambridge.apple.com
  8. Lines: 12
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10.  
  11. > From: westling@starbase.mitre.org (Mark Westling)
  12. > Date: 25 Jan 93 22:10:13 GMT
  13. > I'm calling MPW C code using MCL 2.0's foreign function
  14. > interface.  My program bombs occasionally (but not
  15. > consistently), and I suspect it's due to malloc calls. Is
  16. > it safe to use the MPW memory allocation/deallocation
  17. > calls in a Lisp environment, or should I create a static
  18. > array and manage it all myself?
  19.  
  20. Calling malloc (or C++ new) works reliably for me.  Perhaps your C program
  21. would bomb even if you weren't running it under MCL?
  22.