Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!rutgers!rochester!pt.cs.cmu.edu!andrew.cmu.edu!rj0z+ From: rj0z+@andrew.cmu.edu (Robert George Johnston, Jr.) Newsgroups: comp.sys.mac.programmer Subject: Re: why is LSP complaining? Message-ID: Date: 14 Dec 88 16:08:22 GMT Organization: Carnegie Mellon Lines: 13 I have encountered the exact same problem that you describe. But, the problem did not have anything to do with the window. It was the control's fault. (Actually, it was my fault.) I had written a couple of custom control definition functions, as pascal procedures, and given the contrlDefProc a pointer to the procedure (@CustomControl). Don't do this. The compiled program code moves around, and suddenly, when you attempt to redraw controls, the DrawControls procedure trys to call a procedure that was were you told it, but has since then moved. Solution: Compile the controls as a code resource (CDEF), and use them via the resource manager, (you can pass an ID code to NewControl, or use it through a DITL and a CNTL). Rob Johnston.