Advertisement
4_2005-2006 Debugging and Error Handling #161055

GPF Exception Handler

Tired of your favourite VB program crashing because of General Protection Faults? Bad subclassing code? Well... if any unhandled exceptions occur, your program will be able to cope, and even continue running. Please leave a line or two to let me know if this has been useful. Thanks. 10/12/02 - Updated: Now the module top level exception handler will raise the error via Err.Raise to allow VB to handle the error using On Error statements. GPFs can now be caught, just the same as any other error :) Thanks to those below who suggested this. Also, I added some more constants, to allow deriving of more information from the EXCEPTION_RECORD structure. This means more info for your user, which is always good.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine