Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!shelby!portia.stanford.edu!jessica.stanford.edu!rick From: rick@jessica.stanford.edu (Rick Wong) Newsgroups: comp.sys.mac.programmer Subject: Re: New SetDepth call Keywords: System 6.0.5, Graphics Devices Manager Message-ID: <1990Jul27.214223.6704@portia.Stanford.EDU> Date: 27 Jul 90 21:42:23 GMT References: <1990Jul26.183633.10926@portia.Stanford.EDU> <43382@apple.Apple.COM> Sender: news@portia.Stanford.EDU (USENET News System) Organization: Academic Information Resources Lines: 34 Thanks to all who replied to my query about SetDepth. (I was using the tech notes that were in the Inside Mac VI stack on the Sys 7.0a9 CD.) Using the corrected inline definition almost works, except . . . My machine crashes when I try to use it. (Waaaaahhhhhhh!) The symptoms are as follows: Going from 8 -> 1-bit: -- my screen blanks out -- I drop into MacsBug with a bus error -- when I do an ExitToShell, the screen is in 1-bit mode Going from 1 -> 8-bit: -- my screen blanks out -- I drop into MacsBug with a bus error -- when I do an ExitToShell, the screen is in 8-bit mode -- when I reboot, the screen is changed from color to grayscale The calls I make to SetDepth are: if (oldDepth == 1) { successful = (SetDepth(mainDev, 8, 0, 0) == noErr); } else { successful = (SetDepth(mainDev, 1, 0, 0) == noErr); } I am doing this on a IIfx with System 6.0.5. The crashes occur even when I have removed all skanky inits from my system folder. Once again, thanks for any help. Rick Wong rick@jessica.stanford.edu