Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!ucla-cs!zen!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac Subject: BUG in LightSpeed C version 2.11 Message-ID: <20031@ucbvax.BERKELEY.EDU> Date: Sun, 9-Aug-87 03:52:17 EDT Article-I.D.: ucbvax.20031 Posted: Sun Aug 9 03:52:17 1987 Date-Received: Sun, 9-Aug-87 13:41:52 EDT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Distribution: world Organization: School of Education, UC-Berkeley Lines: 31 In THINK's haste to be compatible with the possibilities of the future, they've made LightSpeed C incompatible with the actualities of the past. There have been complaints, here on the net, that the start-up code executed by LightSpeed C before it calls your main() procedure looks at the high bits of a handle, and that while that works for all existing Macintoshes, if Apple were to change the format of handles, it would stop working. Well, THINK changed LightSpeed C's start-up code, and in the process broke LightSpeed C for old Macintoshes. The new start-up code does an HGetState() to find out if a handle is locked or not. It does this _without_ doing the check that the system call HGetState() is in fact defined. So, run a program compiled in LightSpeed C version 2.11 under System file version 2.0, and Boom! You get the bomb alert with a DS code of 12 = "Unimplemented Core Routine". THINK, we need a new version fast. Your customers have products to ship, and those products will crash right now if their customers are still using the old System file. You can get the crash on a MacPlus with system file version 2.0, Finder 4.1. I've tested and traced this one. You can probably also get the crash on a 512k unenhanced Mac, a 128k Mac or a MacXL, but I don't have those handy to test on. --- David Phillip Oster --My Good News: "I'm a perfectionist." Arpa: oster@dewey.soe.berkeley.edu --My Bad News: "I don't charge by the hour." Uucp: {seismo,decvax,...}!ucbvax!oster%dewey.soe.berkeley.edu