Platforms to show: All Mac Windows Linux Cross-Platform
The module CallDelegateCrashSafeMBS
module CallDelegateCrashSafeMBSType | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
module | Process | MBS Util Plugin | 23.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
We can catch the following conditions:
- Invalid pointer access
- Invalid instruction
- Floating point exception
- Wrong system call
- Broken pipe
- Bus error
We may crash ourselves on stack corruption and we print the stack trace to stderr for macOS and Linux for debugging.
If a crash is caught, there may be memory leaked as objects allocated in the called method are not freed. The call function can not be used recursively and only on one thread at the time.
- method CallDelegateCrashSafeMBS(m as DelegateCrashSafeMBS)
- method PrintBacktraceMBS
- property CallCounter as Integer
- property CrashCounter as Integer
- delegate DelegateCrashSafeMBS()
Some examples which use this module:
Blog Entries
- News from the MBS Xojo Plugins Version 25.0
- MBS Xojo Plugins, version 24.6pr3
- Stacktraces for Windows
- MBS Xojo Plugins, version 23.1pr2
- News from the MBS Xojo Plugins in Version 23.0
- MonkeyBread Software Releases the MBS Xojo Plugins in version 23.0
- MBS Xojo Plugins, version 23.0pr5
- Crash Protection for Xojo methods
- MBS Xojo Plugins, version 22.6pr1
Xojo Developer Magazine
Release notes
- Version 25.0
- Improved CallDelegateCrashSafeMBS class to catch more low level exceptions on Windows like Access violation and illegal instruction.
- Version 23.1
- Improved CallDelegateCrashSafeMBS to catch trace trap signals and C++ exceptions.
- Improved CallDelegateCrashSafeMBS to check for stack corruption and prevent recursion.
- Version 23.0
- Added CallDelegateCrashSafeMBS module and method to call crashing method and get an DelegateCrashExceptionMBS.
The items on this page are in the following plugins: MBS Util Plugin.
