Page 1 of 1

Onerror()

Posted: Mon May 27, 2024 11:26 pm
by jassing
maybe this is also not a bug for either documentation, ide, nor compiler.
I did not check the wiki or internet ; just went on the documentation provided
Help File wrote: OnErrorGoto(?ErrorHandler)
PokeS(10, "Hello World") ; Cause a #PB_OnError_InvalidMemory error

MessageRequester("OnError test", "This should never be displayed")
End

ErrorHandler:
MessageRequester("OnError test", "The following error happened: " + ErrorMessage())
End
On C backend: The specified '?Label' is not a label pointer
On ASM backend: IMA