Path: utzoo!attcan!uunet!mcsun!hp4nl!dnlunx!dnlts!nugteren From: nugteren@pttrnl.nl Newsgroups: comp.sys.mac.programmer Subject: How can I keep my application memory resident ??? Message-ID: <56297.27285b80@pttrnl.nl> Date: 26 Oct 90 14:51:27 GMT Organization: PTT Research Neher Laboratories, The Netherlands Lines: 14 I have written a trackball driver (in Lightspeed C) for the MacII that allows connection of a MSDOS trackball to the serial port of the Mac. It works fine as an application, but now I want to put it in the background as an interrupt handler. I thought the easiest way to do this is to build it on the ROM serial driver, use asynchronous calls and specify a routine in my program as the completion routine. I already tried this and it works very well as long as my program is active (which means I have to put a "while(1){}" at the end of my main!!). As soon as the Mac leaves my main() it throws the program away. So what the problem really boils down to is:How can I keep my program resident? I would greatly appreciate any tips or advice, Nils