Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!psuvax1!gatech!purdue!decwrl!ucbvax!agate!saturn!ucscc.ucsc.edu!gorn!filbo From: filbo@gorn.santa-cruz.ca.us (Bela Lubkin) Newsgroups: comp.lang.pascal Subject: Turbo Dispose() can fail (was: Strange... The Turbo Pascal NEW command) Message-ID: <5.filbo@gorn.santa-cruz.ca.us> Date: 5 Aug 89 06:39:18 GMT References: <3.filbo@gorn.santa-cruz.ca.us> <1087@tukki.jyu.fi> Organization: R Pentomino Lines: 31 In article <1087@tukki.jyu.fi> tarvaine@tukki.jyu.fi (Tapani Tarvainen) writes: >In article <3.filbo@gorn.santa-cruz.ca.us> filbo@gorn.santa-cruz.ca.us (Bela Lubkin) writes: >> (I don't think there's an exception routine for >>Dispose -- how could it fail?) >Yes it can, rare though it is: There is a fixed size reserved >for the free space list, and if you free a block that isn't adjacent >to another, you need room for another entry. If memory becomes >sufficiently fragmented, it is possible to fill the list. >This is described on p. 197-198 in TP 5.0 Reference Guide; >it says there is room for 8191 noncontiguous freed blocks. >BTW, it isn't quite as unlikely as the manual suggests: >it happened to me once! Right. 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? I should have remembered this failure more for Dispose. My former housemate's multiuser BBS, written in Turbo (5.5, now), crashes once in a while due to heap fragmentation -- too many free blocks. One of these days he's going to put in a heap compactor. (XBBS -- not related to the XENIX BBS of the same abbreviation -- runs 4 1200 dialups, 2 4800 hardwires, and the console, on an original IBM 8MHz AT; it used to run sans the hardwires on a Victor 9000. It is a discussion board, no file storage, at USA: (408) 476-4945). >Tapani Tarvainen (tarvaine@jyu.fi, tarvainen@finjyu.bitnet) Bela Lubkin * * filbo@gorn.santa-cruz.ca.us CIS: 73047,1112 @ * * ...ucbvax!ucscc!gorn!filbo ^^^ REALLY slow [months] R Pentomino * Filbo @ Pyrzqxgl (408) 476-4633 & XBBS (408) 476-4945