Trying to override loadimage.

BlitzMax Forums/BlitzMax Beginners Area/Trying to override loadimage.

Hm... RunTimeError isn't throwing up a dialog box unless I'm in debug mode. I set the graphics mode beforehand... What gives?

Wow, and Assert completely fails to detect that the image wasn't loaded AT ALL!

If Image = Null Then RuntimeError("The following image failed to load: " + String(Url) + "Please reinstall the game.")

Succeeds, but only prints the error to the debuglog, unless in debug mode, in which case it brings up a dialog box as expected, or in the case of a release executable, where it does nothing but cause the application to exit.


Assert Image, "The following image failed to load: " + String(Url) + "Please reinstall the game."

Fails to stop the program normally. In debug mode, brings up a dialog box but application refuses to exit after it is dismissed and close program must be selected from start bar.