Welcome to Pauls PureProject
 Home Online Reference Guide duplicated from http://cvs.purebasic.com  
 Online Resources
   · Reference

 Libraries
     2DDrawing
     Billboard
     Camera
     CDAudio
     Cipher
     Clipboard
     Console
     Database
     Date
     Desktop
     Engine3D
     Entity
     File
     FileSystem
     Font
     Gadget
     Help
     Image
     ImagePlugin
     Joystick
     Keyboard
     Library
     Light
     LinkedList
     Material
     Math
     Memory
     Menu
     Mesh
     Misc
     Module
     Mouse
     Movie
     Network
     OnError
     Packer
     Palette
     Particle
     Preference
     Printer
     Requester
     Sort
     Sound
     SoundPlugin
     Sprite
     Sprite3D
     StatusBar
     String
     SysTray
     Terrain
     Texture
     Thread
     Toolbar
     Window

 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 developped 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
OnErrorGosub
OnErrorGoto
OnErrorResume
SetErrorNumber

Example

OnError.pb

Supported OS

Windows

Reference Manual - Index



Hosted by Reel Media Productions Copyright©2001-2004 All Rights Reserved