Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!mailrus!purdue!decwrl!decvax!tektronix!percival!billc From: billc@percival.UUCP (William Coldwell) Newsgroups: comp.sys.amiga.tech Subject: Re: Negative Open Counts (was Re: IEEE libraries) Keywords: open counts Message-ID: <1370@percival.UUCP> Date: 19 Sep 88 06:27:28 GMT References: <1356@percival.UUCP><1596@sbcs.sunysb.edu> <2643@sugar.uu.net> Reply-To: billc@percival.UUCP (William Coldwell) Distribution: na Organization: Percy's UNIX, Portland, OR. Lines: 46 In article <2643@sugar.uu.net> peter@sugar.uu.net (Peter da Silva) writes: >In article <1596@sbcs.sunysb.edu>, root@sbcs.sunysb.edu (root) writes: >> But then not all failure modes follow the example. > >I disagree. I think that most of the time, given the way the Amiga is set up, >you would see this sort of failure mode. There are too many tasks popping >in and out. Why don't you SetFunction(OpenLibrary) and implement one of >your plans... and see what it does. > >> provide satisfactory protection for now: pop a recoverable >> requester on opencnt < 0; mark library permanent. > [misc stuff deleted for sake of sanity...] >Neither. I want it to say: > > Fatal error: Library closed twice. > This error occurred in ieee.library. > The responsible task was probably Ray-Trace-4d. > Click left mouse button to reset. > Click right button to kill Ray-Trace-4d. GREAT! This is the idea here. Kill the task, not the machine! >-- > Peter da Silva `-_-' peter@sugar.uu.net Now, if we go back to when I asked WHY this was happening, I was told that it was a bug with Manx not doing CloseLibrary() correctly (actually it's just doing it very well twice). This is due to a compiler problem, not a hardware problem, nor really a system software problem. So, it seems that the OS must be changed to prevent this from every happening again, right? Well, if the compiler problem was corrected, then future problems would be resolved (for the most part, we can't change the OS to prevent programmer errors - though it would be quite nice ;-) ) - right? As for the current people out there still compiling under the bugged compiler should just simply recompile and redistribute the corrected version. I would hate to have an 8M OS, and only 1M to play in ;-)! Bill -- William J. Coldwell Creative Microsystems "We the unwilling, Amiga Attitude Adjuster 10110 SW Nimbus B1 led by the unknowning, (Software Developer) Portland, OR 97223 are doing the impossible, "Blame the hardware" (503) 684-9300 for the ungrateful..."