Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!hubcap!mikeoro From: mikeoro@hubcap.clemson.edu (Michael K O'Rourke) Newsgroups: comp.sys.mac.programmer Subject: ResError Bug? Message-ID: <5914@hubcap.clemson.edu> Date: 4 Jul 89 21:41:02 GMT Organization: Clemson University, Clemson, SC Lines: 22 I am trying to read a PICT resource into my application. I have a if-then statment which checks to see if the resource really existed, but it never gets called in the error case. The code is: var pict : picHandle; pict := PicHandle(Get1Resource('PICT',pictNumber)); if ResError = noErr then { do something} else { handle error } Well, i went in and found out that ResError ALWAYS returns noErr. What's up? I assume that Get1Resource works error handling like GetResource since it doesn't say otherwise. I tried making pictNumber a value i knew corresponded to a given PICT and then a value i knew didn't exist. Both had noErr for ResError. Confusedly, Michael O'Rourke