MAINSAIL System-Specific User's Guides, Chapter 11

previous   next   top   contents   index   framed top   this page unframed


11. Miscellaneous

11.1. MAINPM PC Monitoring

Real PC monitoring is implemented for NTPNT. Virtual PC monitoring has not been implemented, and it does not appear possible to implement it.

11.2. Treatment of CTRL-C

When you type CTRL-C to a MAINSAIL process run from a Windows-based bootstrap, the bootstrap traps CTRL-C and puts up a dialog box asking you to confirm that you want to quit MAINSAIL.

When you type CTRL-C to a MAINSAIL process run from a character-based bootstrap, the bootstrap exits immediately, without confirmation.

11.3. Procedure Stack Overflow

MAINSAIL uses CreateFiber to create a Windows NT fiber for each MAINSAIL coroutine and allocate the coroutine's stack. CreateFiber automatically takes care of allocating the stack in such a way that an operating system exception occurs when the stack overflows.

11.4. Treatment of Operating System Exceptions

MAINSAIL sets up an unhandled exception filter to trap operating system exceptions. The MAINSAIL filter overrides any filter set up by foreign code if foreign code starts execution and invokes MAINSAIL after it has set up a filter.

The exceptions trapped are:

EXCEPTION_GUARD_PAGE may be the exception generated for a stack overflow. In fact, all instances of EXCEPTION_STACK_OVERFLOW and EXCEPTION_GUARD_PAGE are reported as stack overflows, regardless of their actual cause.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL System-Specific User's Guides, Chapter 11