Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!stanford.edu!neon.Stanford.EDU!kaufman From: kaufman@neon.Stanford.EDU (Marc T. Kaufman) Newsgroups: comp.sys.mac.programmer Subject: Re: Check DialogPtr returned by GetNewDialog? Message-ID: <1991Apr1.224254.5399@neon.Stanford.EDU> Date: 1 Apr 91 22:42:54 GMT References: <1991Apr1.052536.27902@ux1.cso.uiuc.edu> <4143@uakari.primate.wisc.edu> Organization: Computer Science Department, Stanford University, Ca , USA Lines: 18 In article <4143@uakari.primate.wisc.edu> bin@primate.wisc.edu writes: >From article <1991Apr1.052536.27902@ux1.cso.uiuc.edu>, by johnsone@uxh.cso.uiuc.edu (Erik A. Johnson): -> Do any of you check to see if the DialogPtr that GetNewDialog returns is -> valid in any way? Is there any way to determine that GetNewDialog had no -> problems (i.e. it found the necessary resources and got the necessary -> memory allocated)? >You want to read Technical Note 4 and then hold your breath in awe >at the advice it gives: > Assume there is no error So what do you want do if there IS an error... put up an ALERT dialog? [Use the sound manager to SAY the alert. Use the CLUT to flash morse code messages on the screen. Initiate a shutdown. Send Email. Draw directly to the desktop] Marc Kaufman (kaufman@Neon.stanford.edu)