Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!bacchus!wpd From: wpd@bacchus.UUCP Newsgroups: comp.sys.amiga Subject: Re: Where's CloseResource()? Message-ID: <374@bacchus.MIT.EDU> Date: Thu, 26-Mar-87 18:04:30 EST Article-I.D.: bacchus.374 Posted: Thu Mar 26 18:04:30 1987 Date-Received: Sat, 28-Mar-87 07:05:31 EST References: <2831@well.UUCP> Sender: daemon@bacchus.MIT.EDU Reply-To: wpd@athena.mit.edu (William P Doyle) Distribution: world Organization: MIT Project Athena Lines: 36 Keywords: missing, kernel, function, sausage In article <2831@well.UUCP> ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes: > > Okay, I've got a question for the West Chester bunch. This morning, >I wanted to fiddle around with the 8520 Time-Of-Day clock. Consulting the >RKM indicated that I should allocate the use of the 8520 using the >OpenResource() function in the Exec. > > When I got to the end of the program, I discovered that there is no >CloseResource() function anywhere. I checked for variants like >FreeResource(), UnOpenResource(), YouCanHaveThisResourceBackNow(), etc. >Nothing. I recently interfaced my Amiga to a card that had an 8031 Microcontroller on it through the parallel port as part of the final project in a lab course I was taking. Because my partner and I had already specified the protocol (we were supposed to interface the card to one of the class computers, but were lazy and didn't feel like fighting for one of the 5 available computers), anyhow, I wrote my own parallel interface routines. I used the OpenResource() call and, like you, found no CloseResource(). I just commented out those lines and pretended they were there. I didn't have any problems re-openning the resources later. I never checked to see if that cost me memory. I would bet that OpenResource() is a "for-future-expansion" call. Perhaps it would do more when trying to allocate a resource on a PC-Card in the 2000? I don't know. Disclaimer: I just read through this and disclaim any responsibility for twisted eyes/brain-cells in trying to understand my ravings. __________________________________________________ | | | Patrick Doyle (617) 253-3261 (msgs) | | MIT, E40-358 or 225-8467 (home) | | (617) 253-4231 (work) 410 Memorial Dr. | | wpd@athena.mit.edu Cambridge, MA 02139 | | ...{decvax,ihnp4}!mit-eddie!mit-athena!wpd | |________________________________________________|