Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!decwrl!labrea!polya!kaufman From: kaufman@polya.Stanford.EDU (Marc T. Kaufman) Newsgroups: comp.sys.mac Subject: Re: Changing the pointer icon Message-ID: <3042@polya.Stanford.EDU> Date: 10 Jun 88 15:13:54 GMT References: <5157@eagle.ukc.ac.uk> <2327@spray.CalComp.COM> <6383@cup.portal.com> Reply-To: kaufman@polya.Stanford.EDU (Marc T. Kaufman) Organization: Stanford University Lines: 22 In article <6383@cup.portal.com> David_Alan_Newman@cup.portal.com writes: >As an aside to this discussion, I thought I'd through out a discovery we >made earlier this week. >We found that some DA's, and/or other applications running under MF would >issue ReleaseResource calls for all the cursors they had used. This would >in effect 'yank' the system cursors right out from under us! System resources >are supposed to be shared, image if people started issuing releases for >WDEF's, CDEF's, etc! For the paranoid (and I count myself among them) you can DetachResource to make a private copy of the cursor for yourself. This avoids having to have copies in your resource file. In general, I am not sure what one is supposed to do about shared system resources. I don't want them cluttering the heap if I no longer need them, but I don't want to offend DAs. Perhaps one should GetResource before EVERY use of the resource, but mark it purgeable... but then you have to decide what to do if there is not enough room in the heap to reload it. At least Cursors are small. Marc Kaufman (kaufman@polya.stanford.edu)