Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!burl!codas!killer!academ!uhnix1!sugar!peter From: peter@sugar.UUCP Newsgroups: comp.sys.amiga Subject: Re: A proposed solution to the resource tracking problem Message-ID: <715@sugar.UUCP> Date: Mon, 14-Sep-87 05:30:42 EDT Article-I.D.: sugar.715 Posted: Mon Sep 14 05:30:42 1987 Date-Received: Sat, 19-Sep-87 07:24:31 EDT References: <636@sugar.UUCP# <165@jc3b21.UUCP> Organization: Sugar Land UNIX - Houston, TX Lines: 30 > As I understand it, that is exactly how Lattice handles the problem > with version 3.10 of their C compiler. I believe you have the option of > disabling that code, but the default is to trap BREAKs (^C) and put up a > requester asking if you wish to continue or abort. Doesn't that pretty > well solve the problem for Lattice users? Lattice and Aztec both check the value of SIGB_CTRL[CDEF] when you call their runtime libraries. Programs that do not use standard I/O won't be helped by this, because SIGB_CTRL[CDEF] will never be checked. Anyway, when these signal bits are detected, Aztec just calls _abort and exits. Lattice puts up this requestor then calls its equivalent of _abort and exits. To get a SIGB_CTRL[CDEF], you have to be run from the CLI. Programs that run from the workbench won't be helped by this. Also, all this cleans up is the stdio stuff (files opened with fopen, memory allocated with malloc)... you have to write your own _abort routine to catch your windows and AllocMemmed memory (which you need some of in any case: you shouldn't be malloccing a FileInfoBlock, for example, or anything that needs to be in CHIP memory). With Lattice this may or may not be possible. Also, I'm a little doubtful of the value of popping up a requestor. What if you're running remotely? I know there are some requestors you can't avoid, but is it really such a good idea to add another? CLI-based programs should try their damndest to avoid needing the screen. -- -- Peter da Silva `-_-' ...!hoptoad!academ!uhnix1!sugar!peter -- 'U` ^^^^^^^^^^^^^^ Not seismo!soma (blush)