Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!apple!keith From: keith@Apple.COM (Keith Rollin) Newsgroups: comp.sys.mac.programmer Subject: Re: Interesting problem with GetResource('dctb', id) Message-ID: <36461@apple.Apple.COM> Date: 14 Nov 89 16:12:19 GMT References: <232@fwi.uva.nl> <5058@internal.Apple.COM> <338@vsserv.scri.fsu.edu> Organization: Apple Computer Inc, Cupertino, CA Lines: 35 In article <338@vsserv.scri.fsu.edu> pepke@loligo.UUCP (Eric Pepke) writes: >In article <5058@internal.Apple.COM> han@apple.COM (Byron Han, Project Scapegoat) writes: >> >>Well, this is kind of a strange quirk in the operating system. >> >>Do this instead: >>SetResLoad(FALSE); >>hDCTB := GetResource('dctb', foobar); >>SetResLoad(TRUE); >>LoadResource(hDCTB); > >Please give a complete definition of the quirk, including what types of >resources it affects under what conditions. I trust that I will not have >to change all my code that gets all kinds of resources to do this charade; >however, nor do I want to have timebombs ticking in my code. I haven't seen anyone respond to this yet, so I'll give what little information I have. I hadn't responded earlier, as I don't know the full details of the problem, and hate to speak knowledgably on things I don't know about. I think that this whole thing was an attempt to fix a bug in the dialog manager. It was leaving 'dctb' resources in memory after the dialog was disposed of. Apparently, the fix involved a patch to GetResource that would detach the 'dctb'. This is what leads us to the current problem. Needless to say, we in DTS were upset about this when we found out. There were many developers that were messed up by this patch. I think that some guys here are working on another fix that should fix the fix. -- ------------------------------------------------------------------------------ Keith Rollin --- Apple Computer, Inc. --- Developer Technical Support INTERNET: keith@apple.com UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!keith "Argue for your Apple, and sure enough, it's yours" - Keith Rollin, Contusions