How can I show a Runtime error?

BlitzMax Forums/BlitzMax Programming/How can I show a Runtime error?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi,

If I run this code in the IDE:

runtimeerror("testing")


in debug mode, a dialog appears saying unhandled exception: 2 but in non-debug mode it just shows 2 on the IDE output window.

However, when running the actual .exes generated by the IDE, no dialog appears at all.

So how can I make a simple windows style error dialog show for when errors occur and I haven't yet initialised the graphics. Do I need a simple windows libary call as nothing seems to do it in BMax?

Thanks in advance.