[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  InterruptRegister( bAction )-> <lSuccess>
------------------------------------------------------------------------------


 PARAMETER:

  <bAction>      Is a Codeblock that will be evaluated after the GPF has
                 occured.   


 RETURNS:

  <lSuccess> is TRUE if the handler could be installed.


 DESCRIPTION:

  This function puts you in control if a GPF happens. Your ActionBlock should
  close all files, and create an Error log that helps you tracing the reason
  for the GPF


 EXAMPLE:


    +--------------------------------------------------------------+
    |  /* Test the GPF Handler */                                  |
    |   InterruptRegister( { || ControlGPF() } )                   |
    |   __GenGPF()                                                 |
    |   RETURN nil                                                 |
    |                                                              |
    |                                                              |
    |  /* Handle the GPF */                                        |
    |   FUNCTION ControlGPF()                                      |
    |       MsgStop( "A GPF has occured, saving Databases !" )     |
    |       CLOSE ALL                                              |
    |                                                              |
    |       InterruptUnRegister()                                  |
    |       eval( ErrorBlock(),_FWGenError(5,"Undetermined GPF" )) |
    |   RETURN nil                                                 |
    |                                                              |
    +--------------------------------------------------------------+


 SOURCE:  

  SOURCE\WINAPI\TOOLHELP.C



See Also: InterruptUnRegister __genGPF TerminateApp
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson