Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!bin From: bin@primate.wisc.edu (Brain in Neutral) Newsgroups: comp.sys.mac.programmer Subject: Re: Thanks for the Help Message-ID: <3771@uakari.primate.wisc.edu> Date: 17 Jan 91 16:50:36 GMT References: Sender: bin@primate.wisc.edu Reply-To: bin@primate.wisc.edu Lines: 19 From article , by wildfire@aix02.aix.rpi.edu (Douglas B Rusch): > I seem to be having a great deal of difficulty getting the dialog manager > to draw my userItem. It seems that when I attempt to return from the > function in which the drawing occurs, that it is returning to some unknown > memory location (somewhere not in my program atleast) and crashing. I have > been writing this on a Mac IIci with Think C 4.0. I don't know if this is your problem, but one quick 'n' easy way to crash a program is to forget to declare routines that are passed as callbacks to ToolBox routines as *pascal* routines. If your function is DrawItem (...) instead of pascal DrawItem(...) you'll have some difficulties. -- Paul DuBois dubois@primate.wisc.edu