Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!stearns From: stearns@Apple.COM (Bryan Stearns) Newsgroups: comp.sys.mac.programmer Subject: Re: Locking executable resources Message-ID: <1657@internal.Apple.COM> Date: 4 May 89 04:40:22 GMT References: <1591@hub.ucsb.edu> Distribution: comp Organization: Apple Lines: 19 From article <1591@hub.ucsb.edu>, by doner@hub.ucsb.edu (John Doner): > I disassembled INIT 31, and sure enough, it JSR's to INIT resources > immediately after reading them in and without locking them. Looks > like a bug to me. I would think that *any* executed block should > be locked before being jumped to. Sorry, my fault. Back in the good old days, we thought it was neat to save a little code here & there: I figgered we'd just require that the INIT resource have its resLocked bit set, and good old Resource Manager would lock it for us. I'm told by the folks who now deal with such things that they'll add the HLock in the next version. ........................................................................... Bryan Stearns Apple Computer, Inc. Macintosh Finder Group 10500 North DeAnza Blvd, M/S 27-AJ stearns@apple.com Cupertino, CA 95014 {nsc,dual,sun,ucbvax!mtxinu}!apple!stearns "Laugh while you can, monkey boy!"