Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pacbell!varian!zehntel!kinetics!mahboud From: mahboud@kinetics.UUCP (Mahboud Zabetian) Newsgroups: comp.sys.mac.programmer Subject: cdev question: Why does GetDItem return bad value on closeDev? Message-ID: <783@kinetics.UUCP> Date: 20 Jul 89 17:26:48 GMT Reply-To: mahboud@kinetics.com (Mahboud Zabetian) Organization: Kinetics, Inc. Lines: 29 Does anyone know what state the Control Panel is in at the time of a closeDev call? I do a GetDItem and SetIText when I get a closeDev call, but it never works, and sometimes it even crashes. In macsbug I notice that my DITL list is still pointed to by the Control Panel window and that my cdev file is still open. So why am I not getting a valid Handle back from GetDItem? On a related note- what happens when you get an updateDev call? I do some drawing in the cdev window, which will get erased as soon as I get another message(other than a nulDev), but this drawing almost never is seen. I know that the code for it gets executed, but the drawing seems to be wiped out with something. Thank you... mahboud Standard Disclaimer: Don't mind me, I'm just babbling. ------------------------------------------------------------------------------ Mahboud Zabetian (415) 975-4511 mahboud@kinetics.com Kinetics/Excelan/Novell 1340 Treat Blvd, Suite 500 ...!ucbvax!mtxinu!kinetics!mahboud Walnut Creek, CA 94596 ------------------------------------------------------------------------------ Woke up in my clothes again this morning, I don't know exactly where I am.... --- Sting ------------------------------------------------------------------------------