Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!zaphod.mps.ohio-state.edu!rpi!wildfire From: wildfire@aix02.aix.rpi.edu (Douglas B Rusch) Newsgroups: comp.sys.mac.programmer Subject: Re: Thanks for the Help Message-ID: Date: 17 Jan 91 06:34:37 GMT References: <6990@crash.cts.com> Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 16 Nntp-Posting-Host: aix02.aix.rpi.edu 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 call the routines to set up the function call as follows : GetDItem(theDialog,itemNo,&itemType,&item,&box); item = (Handle)DrawItem; SetDItem(theDialog,itemNo,itemType,item,&box); Then I use DrawDialog(theDialog) to draw it. The problem does not have anything with what happens in my Draw function. Any insights into this problem would be greatly appreciated. Doug Rusch -RPI