Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!ut-sally!utah-cs!utah-gr!stride!l5comp!scotty From: scotty@l5comp.UUCP (Scott Turner) Newsgroups: comp.sys.amiga Subject: Re: What opens dos.library, and why doesn't it close? Message-ID: <295@l5comp.UUCP> Date: Fri, 17-Jul-87 16:41:57 EDT Article-I.D.: l5comp.295 Posted: Fri Jul 17 16:41:57 1987 Date-Received: Sat, 18-Jul-87 21:06:38 EDT References: <0274526P@NAVPGS> Reply-To: scotty@l5comp.UUCP (Scott Turner) Organization: L5 Computing, Edmonds, WA Lines: 24 Summary: Using Exit can cause this Having ripped apart alot of code I've noticed several things that cause the above "behavior": One cause is hidden setup code. Lattice is a perfect example here, the default C startup code automagically opens dos.library and assumes that a program will exit by returning from the jsr which the startup code uses to call it. However, if a programmer uses EXIT to terminate his/her program the program will NOT return to the startup code. And the code downstream of the startup code has no idea that the startup code opened dos.library! Ooops! That's one cause, another is legitimate. Take for example a "Hot Key" program like PopCLI. PopCLI uses the execute function in dos.library when Left-Amiga-Esc is pressed. Since it will be calling dos.library from time to time it MUST leave dos.library open. Some device drivers use global variables in dos.library for various reasons. Thus they must leave dos.library open as well. Scott Turner -- UUCP-stick: stride!l5comp!scotty | If you want to injure my goldfish just make UUCP-auto: scotty@l5comp.UUCP | sure I don't run up a vet bill. GEnie: JST | "The bombs drop in 5 minutes" R. Reagan Disclaimer? I own L5 Computing. Isn't that enough?