Path: utzoo!mnetor!uunet!husc6!uwvax!puff!avery From: avery@puff.cs.wisc.edu (Aaron Avery) Newsgroups: comp.sys.amiga.tech Subject: Re: Idea Message-ID: <1610@puff.cs.wisc.edu> Date: 27 Apr 88 08:58:09 GMT References: <8804231647.AA09390@jade.berkeley.edu> <5809@well.UUCP> Reply-To: avery@puff.WISC.EDU (Aaron Avery) Organization: U of Wisconsin CS Dept Lines: 22 In article <5809@well.UUCP> ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes: > I had this same idea about a year ago, and wrote a quickie program to >discover if it would work. As it turns out, hitting Ctrl-A-A asserts >RESET, and RESET resets the 8520's Time-Of-Day clock. Personally, I think >it was a mistake on the part of the designer to have done that. Me, too. >P.S: This was how I found out that there's no CloseResource() call in the >system. So what am I supposed to do with something that I've >OpenResource()d? This has been gone over before. Apparently, all that happens when you call OpenResource() is that you get back a pointer useful for allocating those resources. A big difference between a Resource and a Library is that the Resources don't keep an OpenCount. Because of this, it doesn't care when you're not using it any more, so you just de-allocate all associated resources, don't call any CloseResource(), since it doesn't care, and ignore the pointer you got from OpenResource()! -- Aaron Avery (avery@puff.cs.wisc.edu) ({seismo,caip,allegra,harvard,rutgers,ihnp4}!uwvax!puff!avery)