Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!kth!draken!tut!tukki!tarvaine From: tarvaine@tukki.jyu.fi (Tapani Tarvainen) Newsgroups: comp.lang.pascal Subject: Re: Turbo Dispose() can fail (was: Strange... The Turbo Pascal NEW command) Message-ID: <1105@tukki.jyu.fi> Date: 7 Aug 89 05:30:18 GMT References: <3.filbo@gorn.santa-cruz.ca.us> <1087@tukki.jyu.fi> <5.filbo@gorn.santa-cruz.ca.us> Reply-To: tarvaine@tukki.jyu.fi (Tapani Tarvainen) Organization: University of Jyvaskyla, Finland Lines: 18 In article <5.filbo@gorn.santa-cruz.ca.us> filbo@gorn.santa-cruz.ca.us (Bela Lubkin) writes: .. > My manuals still haven't been moved over (or if they have, they're >buried at the bottom of one box or another): am I correct in remembering >that there's no exception procedure for Dispose() failures? Yes, at least as far as I know and can find in the 5.0 manual: "The heap error function gets called whenever a call to New or Getmem cannot complete the request." "Trying to dispose of a pointer when the free list is full causes a runtime error." Too bad. I'm afraid the only reliable way out is writing your own memory allocation routines. -- Tapani Tarvainen (tarvaine@jyu.fi, tarvainen@finjyu.bitnet)