Article View: comp.lang.lisp.mcl
Article #667Re: Calling MPW C code: is malloc safe?
From: moon David A. Moon
Date: Mon, 25 Jan 1993 23:52
Date: Mon, 25 Jan 1993 23:52
12 lines
906 bytes
906 bytes
> 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?
Technical Details
Message-ID:
<9301252349.AA02097@cambridge.apple.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!apple!cambridge.apple.com!moonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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