Platforms to show: All Mac Windows Linux Cross-Platform
SignalHandlerMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | System | MBS Util Plugin | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
You can use this class to catch signals like SIGALRM oder SIGQUIT.
See
http://en.wikipedia.org/wiki/Signal_(computing)
- event Signal(n as Integer)
- 2 methods
- method Close
- method SetEventHandler(signalIndex as Integer, CollectStackTrace as boolean = false) as boolean
- 13 shared methods
- shared method alarm(seconds as Integer)
- shared method ClearFlag(signalIndex as Integer)
- shared method ClearFlags
- shared method ClearStacktrace(signalIndex as Integer)
- shared method IsFlagSet(signalIndex as Integer) as boolean
- shared method QueryStacktrace(signalIndex as Integer, skip as Integer = 2) as string()
- shared method SendSignal(PID as Integer, Signal as Integer) as boolean
- shared method SendSignalToSelf(Signal as Integer) as boolean
- shared method SetDefaultHandler(signalIndex as Integer) as boolean
- shared method SetFlagHandler(signalIndex as Integer, CollectStackTrace as boolean = false) as boolean
- shared method SetIgnore(signalIndex as Integer) as boolean
- shared method SetPrintBacktraceAndAbortHandler(signalIndex as integer) as boolean
- shared method SignalStatus(signalIndex as Integer) as Integer
- 5 constants
Signal Handler Modes
Constant | Value | Description |
---|---|---|
kSignalDefault | 1 |
The signal calls default handler. |
kSignalEvent | 3 |
The signal raises an event and sets the flag. |
kSignalFlag | 4 |
The signal sets a flag. |
kSignalIgnored | 2 |
The signal is ignored. |
kSignalPrintBacktraceAndAbort | 8 |
The signal is handled by the plugin. We print the backtrace and abort. |
This class has no sub classes.
Some examples using this class:
- /Util/BugreporterKit/BugReporter
- /Util/BugreporterKit/BugReporter Console
- /Util/SignalHandler/Signal Handler Flag Test
- /Util/SignalHandler/SignalHandler
Blog Entries
- MBS Xojo Plugins, version 24.1pr5
- Xojo Web signal handling
- MBS Xojo / Real Studio Plugins, version 14.2pr5
- MonkeyBread Software Releases the MBS Xojo / Real Studio plug-ins in version 14.0
- MBS Xojo / Real Studio Plugins, version 14.0pr3
- MBS REALbasic Plugins, version 10.6pr11
Xojo Developer Magazine
Release notes
- Version 24.1
- Added SetPrintBacktraceAndAbortHandler method to SignalHandlerMBS class.
The items on this page are in the following plugins: MBS Util Plugin.