Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!mit-eddie!mit-amt!adamk From: adamk@mit-amt.MEDIA.MIT.EDU (Adam Kao) Newsgroups: comp.sys.hp Subject: Re: Problem using C/Starbase example from Lisp Message-ID: <1327@mit-amt.MEDIA.MIT.EDU> Date: 6 Jan 90 04:09:11 GMT References: <1990Jan5.224210.26103@athena.mit.edu> Reply-To: adamk@media-lab.media.mit.edu (Adam Kao) Organization: MIT Media Lab, Cambridge MA Lines: 29 Just to clarify my earlier posting; Whenever I call gopen(), it fails, returning -1. My Lisp process died because the C procedure called exit() when gopen() failed. I have replaced the exit() call with return and now the C procedure returns to the Lisp process. The call to gopen() fails every way I've tried it, which includes calling it from within a couple different programs, calling it from Lisp directly, calling it with mode INIT | THREE_D | MODEL_XFORM, and calling it with mode INIT only. The call to gopen() generates a different error on a different machine, namely: Starbase error 2049: Could not allocate memory. Procedure name: gopen File descriptor: 3 Device file name: /dev/crtren Library location: HP98721 driver (14) System errno: No such file or directory Is gopen() trying to allocate memory in a way that can't be done inside a Lisp process? In the Lisp manual it mentions that foreign code should "use malloc to manage memory . . . avoid using sbrk". Could this have something to do with gopen() failing? Thank you for your time, Adam