Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!ux1.cso.uiuc.edu!pequod.cso.uiuc.edu!dorner From: dorner@pequod.cso.uiuc.edu (Steve Dorner) Newsgroups: comp.sys.mac.programmer Subject: Re: Question: InvalRect in Think C Message-ID: <1991Mar14.141639.16825@ux1.cso.uiuc.edu> Date: 14 Mar 91 14:16:39 GMT References: <1991Mar14.021122.292@husc3.harvard.edu> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at U-C Lines: 11 >At several points I need to add a rectangle to the update region of a >dialog box. The calls InvalRect and InvalRgn, however, fail to work. Each >one generates an out-of-memory error. What am I doing wrong/not doing? Make sure that you have set the current port to your dialog window. Make sure you are giving InvalRect a pointer to the rectangle, and not the rectangle itself. Make sure you are passing a VALID region to InvalRgn. -- Steve Dorner, U of Illinois Computing Services Office Internet: s-dorner@uiuc.edu UUCP: uunet!uiucuxc!uiuc.edu!s-dorner