[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

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.

Vincent Rivière