[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling MPW C code: is malloc safe?
- To: email@example.com (Mark Westling)
- Subject: Re: Calling MPW C code: is malloc safe?
- From: moon (David A. Moon)
- Date: Mon, 25 Jan 93 18:52:19 EST
- Cc: info-mcl
> From: firstname.lastname@example.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?