README.md

December 4, 2022 ยท View on GitHub

GPF Exception Handler

Description

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.

More Info

Note that this won't catch normal VB errors, since these are handled by the VB runtime DLL. This will protect against General Protection Faults, which would ordinarily bring your application to it's knees.

Submitted On2002-12-10 07:07:04
ByWill Barden
LevelIntermediate
User Rating5.0 (99 globes from 20 users)
CompatibilityVB 5.0, VB 6.0
CategoryDebugging and Error Handling
WorldVisual Basic
Archive FileGPF_Except15109312102002.zip