Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!decvax!spray!anson From: anson@spray.CalComp.COM (Ed Anson) Newsgroups: comp.sys.mac.programmer Subject: Re: sharing data between cdevs and INITs Keywords: INIT cdev LSC DRVR Message-ID: <2413@spray.CalComp.COM> Date: 22 Aug 88 20:44:07 GMT References: <1739@microsoft.UUCP> <15808@apple.Apple.COM> <1745@microsoft.UUCP> Reply-To: anson@spray.UUCP (Ed Anson) Organization: CalComp, A Lockheed Company, Hudson, NH, USA Lines: 14 In article <1745@microsoft.UUCP> t-benw@microsoft.uucp (Benjamin Waldman) writes: >But, wait, it gets worse. Think C lets you have global data in your >drivers by allocating a block in the heap for you, locking it, pointing >A4 to it, and referencing your globals off of A4. But my data has to >be in the system heap!!! When you allocate globals for a driver, they are stored in a DATA resource. You could try just setting the System bit for that resource. It may solve your problem. Im not sure, but it looks like LSC is using GetResource, not NewHandle. -- ===================================================================== Ed Anson, Calcomp Display Products Division, Hudson NH 03051 (603) 885-8712, anson@elrond.CalComp.COM