Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!ucbvax!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: Globals in Device Drivers, LSC 3.0 ?? Message-ID: <1261@husc6.harvard.edu> Date: 23 Feb 89 23:29:03 GMT References: <28152@ucbvax.BERKELEY.EDU> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec/THINK Technologies, Bedford, MA Lines: 27 In article <28152@ucbvax.BERKELEY.EDU> mkent@dewey.soe.berkeley.edu (Marty Kent) writes: > >It turns out my Open routine *is* finding a 0 in the dCtlStorage >field. Since I'm running with 8Meg of memory on a Mac II, I know there's >enough memory. (In fact, when I added an explicit call to NewHandle in my >Open routine, it worked fine.) Does anyone have any ideas as to what >I might be doing that's causing the driver glue to fail to allocate the >globals? 8 MB of installed RAM does not imply 8MB of space for your program, particularly under MultiFinder. It's possible that there's not enough space in the heap you're running in to allocate the handle. You may want to place a debugger trap at the beginning of your main(), and watching where the dCtlStorage is getting allocated, or place a TMON trap intercept on _NewHandle. Beyond that, I'm stumped.... --Rich Rich Siegel Staff Software Developer THINK Technologies Division, Symantec Corp. Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel Phone: (617) 275-4800 x305