Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!jarthur!usc!snorkelwacker!apple!austing From: austing@Apple.COM (Glenn L. Austin) Newsgroups: comp.sys.mac.programmer Subject: Re: Why does the System not lock my INITs ? Message-ID: <43741@apple.Apple.COM> Date: 8 Aug 90 02:39:33 GMT References: <157@neptune.inf.ethz.ch> Organization: Apple Computer Inc., Cupertino, CA Lines: 24 mneerach@b.inf.ethz.ch (Matthias Ulrich Neeracher) writes: >This week I tried to write an INIT (I did some before). Every time I tested >it, it crashed. Stepping through my debugger, I found out that my INIT was >unlocked and on return from a trap had been moved away. No problem... I just >set the lock bit on the INIT resource and everything worked as expected. >Still, I'm curious: After all, the System locks most resources before >calling them: CODE, WDEF, MDEF, CDEF, snth and probably even cdev resources. >Why are INIT's not locked by INIT31 ? They just aren't. Don't ask me why (one version of System Software actually DID lock it down, but it is "history" now, and was actually a "feature"). -- ----------------------------------------------------------------------------- | Glenn L. Austin | "Turn too soon, run out of room, | | Auto Racing Enthusiast and | Turn too late, much better fate" | | Communications Toolbox Hacker | - Jim Russell Racing School Instructors | | Apple Computer, Inc. | "Drive slower, race faster" - D. Waltrip | | Internet: austing@apple.com |-------------------------------------------| | AppleLink: AUSTIN.GLENN | All opinions stated above are mine -- | | Bellnet: (408) 974-0876 | who else would want them? | -----------------------------------------------------------------------------