Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!yale!eagle.wesleyan.edu!rcook From: rcook@eagle.wesleyan.edu Newsgroups: comp.sys.mac.programmer Subject: my driver stalls! Message-ID: <1990Nov11.232728.35684@eagle.wesleyan.edu> Date: 12 Nov 90 04:27:27 GMT Lines: 23 I am currently working on a driver that gets installed by an init and plays a sound every Friday at 6pm (don't ask why--it's for a friend :-). The init apparently works, and receives noErr from the OpenDriver call. The problem is that the system crashes when the Finder is launched. The usual problem is a line 1111 error. When I install the driver from within an application, there is no problem as long as the application is running, but, again, when the application quits and the finder starts up (or even when control is returned to LSP 3.0) the system crashes. The driver has a delay of 600 (every 10 seconds) and is marked 'locked' and 'system heap'. To check if it was any of the code in the driver, I pared it down so that it does nothing but return noErr on all calls and still the system crashes. I suspect is is not some sort of heap problem, because it isn't even using local variables, let alone globals or making toolbox calls. I need to know if there is some trick to having drivers remain installed and running when you switch applications. The driver is written using THINK Pascal 3.0. I've read every tech note and every page of IM I could find relating to this, and fond nothing. Please e-mail or post anything you know on this subject. Thanks, Randall Cook rcook@eagle.wesleyan.edu