Platforms to show: All Mac Windows Linux Cross-Platform
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Util/Crash Delegate Test
This example is the version from Wed, 22th Nov 2022.
Project "Crash Delegate Test.xojo_binary_project"
Class App Inherits ConsoleApplication
EventHandler Function Run(args() as String) As Integer
Try
System.DebugLog "Try the call..."
CallDelegateCrashSafeMBS AddressOf Test
System.DebugLog "Call succeeded!"
Catch c As DelegateCrashExceptionMBS
System.DebugLog "Caught exception!"
System.DebugLog c.Message
End Try
End EventHandler
Sub Test()
Dim p As ptr = Nil
System.DebugLog CurrentMethodName
Dim d As Double = 0
Dim e As Double = 1/d
p.Int32(0) = 0
System.DebugLog CurrentMethodName+" done"
End Sub
End Class
End Project
The items on this page are in the following plugins: MBS Util Plugin.