Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!adobe!hawley From: hawley@adobe.COM (Steve Hawley) Newsgroups: comp.sys.mac.programmer Subject: Re: Detecting Color Depth Message-ID: <8068@adobe.UUCP> Date: 8 Nov 90 23:01:21 GMT References: <1990Nov6.231358.18153@Neon.Stanford.EDU> Reply-To: hawley@adobe.UUCP (Steve Hawley) Distribution: na Organization: Adobe Systems Incorporated, Mountain View Lines: 16 In article phils@chaos.cs.brandeis.edu (Phil Shapiro) writes: >#define ScreenDepth(gdh) ((**((**gdh).gdPMap)).pixelSize) >#define MaxColors(gdh) (1L< >where gdh is a GDHandle (graphic device handle). Phil -- if your handle is not locked, isn't there a potential problem with the order of evaluation of the dereferences --especially in a context that may move memory? Steve Hawley hawley@adobe.com -- "I'm sick and tired of being told that ordinary decent people are fed up with being sick and tired. I know I'm certainly not, and I'm sick and tired of begin told that I am." -Monty Python