PureBasic - OnError
Overview
The goal of this library is to make error handling in Purebasic easier. There is no error checking in PureBasic compiled executables, to allow optimum speed and compactness. But this can be a drawback because if the program crash, there is no way to get a precise information about the problem. This library is here to fill this gap.
While coding you can use the debugger, which is a good tool for debugging but not so good for embedding in your fully developed program. It also slows down your code by up to a factor of six times.
With this enhanced set of commands and tools you are able to integrate advanced error checking easily into your application and have the full speed of PureBasic available.
All the routines in this library are coded in hand optimized assembler and are split so that only the absolutely required space is included in your application.
Command Index
ClearError
DisASMCommand
GetCurrentEIP
GetDisASMString
GetErrorAddress
GetErrorCounter
GetErrorDLL
GetErrorDescription
GetErrorLineNR
GetErrorModuleName
GetErrorNumber
GetErrorRegister
GoToEIP
OnErrorExit
OnErrorGosub
OnErrorGoto
OnErrorResume
SetErrorNumber
Example
OnError.pb
Supported OS
Windows