Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!ucla-cs!zen!ucbvax!decvax!watmath!watcgl!jvkelley From: jvkelley@watcgl.waterloo.edu (Jeff Kelley) Newsgroups: comp.sys.amiga Subject: Re: "kill" Message-ID: <1673@watcgl.waterloo.edu> Date: Sun, 30-Aug-87 01:40:11 EDT Article-I.D.: watcgl.1673 Posted: Sun Aug 30 01:40:11 1987 Date-Received: Fri, 4-Sep-87 00:42:02 EDT References: <1708@amiga.amiga.UUCP> <581@sugar.UUCP> Reply-To: jvkelley@watcgl.waterloo.edu (Jeff Kelley) Organization: U. of Waterloo, Ontario Lines: 35 Keywords: memory loss Summary: main(argc,argv) char *argv[]; {RemTask(FindTask(argv[1]));} If you missed the summary, look again. That's one way of killing a task, the well known drawback being that resources owned by the task, other than memory placed on its tc_MemEntry structure, will not be released. (Does the AmigaDOS 'RUN' command place the process structure, its stack, and the loaded segments on this list? Probably not, but it's pretty simple to do (I wrote a program called 'RunTask' which does this.)) Neat trick: If you like a mouse cursor that behaves like an air-hockey puck, follow these steps: 1) Find or write a program which opens a window and calls WindowToFront() every second. Clock programs are likely choices. 2) Run several copies simultaneously. Three worked for me. Wait for the system to lock-up. (Shouldn't take more than a minute.) 3) After the system returns from its mysteriously locked state (lasting for 2-30 seconds), the mouse cursor should behave like an air hockey puck. Quickly close the windows, before the next mysterious lock-up. 4) Lock-ups will no longer occur, but your mouse cursor will continue to behave in this interesting fashion. Enjoy. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- UUCP: {ihnp4,watmath}!watcgl!jvkelley | Postal Address: BITNET: jvkelley@cgl.waterloo.bitnet | Jeff Kelley INTERNET: jvkelley@cgl.waterloo.edu | Dept. of Computer Science EAN: jvkelley@cgl.waterloo.cdn | University of Waterloo | Waterloo, Ont., Canada | N2L 3G1 | tel: (519) 578-4514