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