Arrgh! how to relocate and debug exe....???

BlitzMax Forums/BlitzMax Programming/Arrgh! how to relocate and debug exe....???

Arowx(Posted 2008) [#1]
OK hope you can help!

I'm building my game in the BLide or BlitzMax Ide and it works fine as long as it is only running in it's development folder!

As soon as I relocate the exe it falls over during the loading process.

I've gone through the Loading code and all the media is being Incbin'ed!

Now I can build a debug version of the app, and relocate the resultant exe.

But how can I connect an IDE to the exe to run it in debug mode, in the hope that the debugger will catch the error and provide me with a breakpoint or at least some usefull output?

Or is there a simple way to elicit a useful error message from a crashing app in code?


GfK(Posted 2008) [#2]
I've gone through the Loading code and all the media is being Incbin'ed!
I'm pretty confident that you've missed one.

To find out, build your executable in debug mode, temoprarily move all your media out of your development folder, and hit F5. Because you've not changed the code it won't rebuild the EXE.


Arowx(Posted 2008) [#3]
GfK you got me I moved over to streaming in the audio and might have just missed out on adding the "incbin::" when I was selecting the tune to stream!

DOH! Good advice though! Cheers!