Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!caen!news From: cys@engin.umich.edu (CAO YUSONG ) Newsgroups: comp.lang.pascal Subject: TP: How to terminate a TSR program. HELP! Message-ID: <1991Feb21.170654.3759@engin.umich.edu> Date: 21 Feb 91 17:06:54 GMT Sender: news@engin.umich.edu (CAEN Netnews) Organization: University of Michigan Engineering, Ann Arbor Lines: 18 I am writing a TP program as an exercise. The program is a TSR clock which displays the time on screen. The program captures the interrupt $1c. After the initialization. I use "Keep(3)" to terminate the program to hope it can stay resident. My problems are: 1. After I run the program, DOS gave me the following message "Memory allocation error Can not load COMMAND.COM" Then the machine freeses. I have to hard-boot it. I didn't compile it with "Force FAR calls" on, can that be a problem? 2. In the intertupt handling routine, I couldn't seem to use Readln, and Keypressed, but I could use other stuff like GetTime, Writeln, etc. .. Could someone explain? Thanks. Please use address jzeng@norway.biop.umich.edu if you want to e-mail. -- Jim Zeng