Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: Drawing in the menu bar (AGAIN) Message-ID: <9536@goofy.Apple.COM> Date: 1 Aug 90 23:27:22 GMT References: Organization: Apple Computer Inc., Cupertino, CA Lines: 32 In article jjoshua@remus.rutgers.edu (The Twigster) writes: >I am writing something similar to InUse. >I want to open a GrafPort for drawing. It should include the menu >bar. I have been just writing directly to WMgrPort's bit map using >different routines to handle different screen depths. After reading >TN 194 I decided that I should use OpenPort() and QuickDraw calls. > >The problem is that I am getting a crash in OpenPort(). The code is >getting called from a trap patch to _SCSIDispatch. If you want to work in a manner similar to InUse, you can't use QuickDraw. Period. _SCSIDispatch can be called at any time, even in response to an interrupt. QuickDraw uses the Memory Manager which means that you can't use QuickDraw to do any drawing during an interrupt. If you want to find out more about what Sam Barone did to get InUse to work you might drop him a note at yngwie@apple.com. Better yet, instead of re-inventing the wheel, why not just use InUse??? steve :-) -- ____________________________________________________________________ Steve Christensen Internet: stevec@goofy.apple.com Apple Computer, Inc. AppleLink: STEVEC 20525 Mariani Ave, MS 81-CS CompuServe: 76174,1712 Cupertino, CA 95014 "You just contradicted me." "No I didn't." ____________________________________________________________________