From mint-bounce@lists.fishpool.fi Fri Jul 31 08:45:24 2009 Message-ID: <3964C2C95ED949DFA8FC61CDE077377D@joevenlt> From: "Jo Even Skarstein" To: "mint" References: @mail.ie-meel.nl <4A71C3BB.5070604@atari-source.org> <1C73DC0F-2F69-4BAA-85A1-1E112B7988BF@gmail.com> <4A72DA20.5080209@freesbee.fr> In-Reply-To: <4A72DA20.5080209@freesbee.fr> Subject: Re: [MiNT] Half-ugly fullscreen applications, how to recover when things go bump Date: Fri, 31 Jul 2009 14:38:25 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8064.206 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8064.206 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: joska@online.no Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: -------------------------------------------------- From: "Vincent Rivière" Sent: Friday, July 31, 2009 1:48 PM To: "mint" Subject: Re: [MiNT] Half-ugly fullscreen applications, how to recover when things go bump > 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 > > 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. > > OS experts should tell us wich method is the good one. I'm no OS expert, but I think Psigaction() is the way to go. Install a handler for SIGBUS which restores vectors and screen. Jo Even