From mint-bounce@lists.fishpool.fi Fri Jul 31 07:54:56 2009 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=azKSAxF575bvKqrhl8HENzRbKa4NjC+AHDDfmhMc+Og=; b=BIf2IyPrxMlSXYcQicvTt1gZm8w6FdzejBqVGDlQD0wlWqRGtsb0FUYaIEEfyaDmmO zNg30I6FvdZRqYklYE6QJ0QvnYUXGowaEZ1Lg2vucHHU2+gd0ski8UdnTlimgkRTepgt Hsvy9kgydJ3RBYtMHUIOL6FcLlPsyLz4DLoNA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=XwTJ55ULzJR5Rubn+rHOwu9noI3WbEoA6y1GOA/gBGFqtLtSnl8BmAD2ysHShT9zeY WKlMzLh8beb0JshBNhfrQEwUGEluK+K52GT0AjxlUi+4NDJ6mHvqmZicdGwbr4ihvhi9 P+BkRY/U0pB1NwJ7Va/ku5P6KvCFEG4TyTVHM= Message-Id: <6E5CDE9B-C22F-434D-82F1-733AD53F3BE6@gmail.com> From: Peter Persson To: mint In-Reply-To: <4A72DA20.5080209@freesbee.fr> Content-Type: multipart/alternative; boundary=Apple-Mail-10-151022172 Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: [MiNT] Half-ugly fullscreen applications, how to recover when things go bump Date: Fri, 31 Jul 2009 13:52:41 +0200 References: @mail.ie-meel.nl <4A71C3BB.5070604@atari-source.org> <1C73DC0F-2F69-4BAA-85A1-1E112B7988BF@gmail.com> <4A72DA20.5080209@freesbee.fr> X-Mailer: Apple Mail (2.935.3) X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: pep.fishmoose@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: --Apple-Mail-10-151022172 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable 31 jul 2009 kl. 13.48 skrev Vincent Rivi=E8re: > Peter Persson wrote: >> The biggest problem with this is that when something goes wrong, =20 >> i.e. if the app crashes, I need to restore the desktop screen and =20 >> keyboard/mouse/joystick vectors. > > The solution to make such cleanup may be GEMDOS vector =20 > VEC_CRITICALERR as described here: > http://cd.textfiles.com/ataricompendium/BOOK/HTML/CHAP2.HTM#gdvectors I read about this too, but it feels "dirty" somehow. Isn't this a =20 global vector, i.e. if some other app crashes, that would cause an =20 unintentionall cleanup (resulting in all sorts of funny side effects)? > Another solution could be to hook the 68000 exceptions vectors =20 > directly (bus error, adress error...). The MiNT function Psignal() =20 > with SIGBUS, etc. may work, or even the signal() function in the =20 > MiNTLib. Ok, there's no turning back now, I finally have to learn about =20 signals. Thanks! -- PeP= --Apple-Mail-10-151022172 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
31 jul 2009 kl. 13.48 skrev = Vincent Rivi=E8re:

Peter Persson = wrote:
The biggest problem with this is that when something goes = wrong, i.e. if the app crashes, I need to restore the desktop screen and = keyboard/mouse/joystick = vectors.

The solution to = make such cleanup may be GEMDOS vector VEC_CRITICALERR as described = here:
http://cd.textfiles.com/ataricompendium/BOOK/HTML/CHAP2.HTM#gdvectors=

I read about this too, but it feels "dirty" = somehow. Isn't this a global vector, i.e. if some other app crashes, = that would cause an unintentionall cleanup (resulting in all sorts of = funny side effects)?

Another solution = could be to hook the 68000 exceptions vectors directly (bus error, = adress error...). The MiNT function Psignal() with SIGBUS, etc. may = work, or even the signal() function in the = MiNTLib.

Ok, there's no turning back now, I finally = have to learn about signals. Thanks!

-- PeP= --Apple-Mail-10-151022172--