🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12212

ARP: Is there an easy way to get rid of a tracked item?

#12212
From: Bernie Cosell
Date: Thu, 13 Apr 1989 15:28
20 lines
1508 bytes
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
Technical Details
Message-ID: <38626@bbn.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!bbn.com!cosell

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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