Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!bbn.com!cosell From: cosell@bbn.com (Bernie Cosell) Newsgroups: comp.sys.amiga.tech Subject: ARP: Is there an easy way to get rid of a tracked item? Message-ID: <38626@bbn.COM> Date: 13 Apr 89 15:28:41 GMT Sender: news@bbn.COM Reply-To: cosell@BBN.COM (Bernie Cosell) Organization: Bolt Beranek and Newman Inc., Cambridge MA Lines: 20 I'm trying to get a program to be more robust, and so I'm switching from the standard AllocMem and Open calls to their tracked ARP look-alikes. My problem is that I can't see any easy way to UNDO (FreeMem or Close) the things. I don't really have any way of getting at A1, and I'm not working in C so I don't exactly know how to find that global-vbl that holds the handle to the "last tracked item". Is there some other, less anomalous, way to get at the tracked item handle? (or otherwise get the filehandle / memory "untracked"?) More generally, is there some reason that I'm overlooking why ARP doesn't have, say, an ARPClose that would take a filehandle and do the right magic to untrack-it and then close it? As I read the docs, if I *DO* do a (dos) Close on the filehandle, ARP will be not at all happy when it eventually library closes (ditto if I FreeMem and ARP-tracked chunk of memory). __ / ) Bernie Cosell /--< _ __ __ o _ BBN Sys & Tech, Cambridge, MA 02238 /___/_(<_/ (_/) )_(_(<_ cosell@bbn.com