Path: utzoo!attcan!uunet!munnari!jkjl From: jkjl@munnari.oz (John Lim) Newsgroups: comp.sys.mac.programmer Subject: Re: AARRGG! Need help with OpenPicture() Summary: Is your setport correct ? Message-ID: <2562@munnari.oz> Date: 8 Nov 88 14:13:44 GMT References: <31922@bbn.COM> Organization: Comp Sci, Melbourne Uni, Australia Lines: 17 In article <31922@bbn.COM>, dtani@bbn.com (Dan Tani) writes: > set correctly, and I even tried putting a ClipRect(&testRect) right > before the OpenPicture call like IM 1 suggests - and got even more > problems! That returned an odd address error right at the ClipRect > call. > Sounds as if you have an invalid or corrupt grafport if you crash in ClipRect(). Dont be too confident that the locality of the crash is also the cause of the crash ! Did you do a DisposWindow() just before the ClipRect() ? Check thePort using the debugger and make sure everything is ok. Obviously OpenPicture is only a symptom and not the problem, if you crash in ClipRect(), before the OpenPicture(). john happy moth-killing :-)