Executable problem

Blitz3D Forums/Blitz3D Beginners Area/Executable problem

Flynn(Posted 2003) [#1]
Hi. Despite having the full version of BlitzPlus, my executables are refusing to run. They create the window, pause for a while and then shut down with an error message.

Any idea what I'm doing wrong?

Thanks.


keyboard(Posted 2003) [#2]
First off, have you got a tick against "debug enabled" in the "program" menu?

If you haven't, do it, and see if it gives advice about your problem, like "invalid image handle" etc.

You should post the error message, if you cannot solve by yourself.


Nibble(Posted 2003) [#3]
Also make sure to update BP to the latest version.


Flynn(Posted 2003) [#4]
Fully updated BP. I've tried Debug on and off - same result. A standard Windows Executable file icon (not the little rocket thingy) and when I double-click it, it creates a window and then shuts itself down (with the standard 'XXX has encountered a problem and has had to close'...

:(


CS_TBL(Posted 2003) [#5]
maybe referring to a file in blitz, that the exe can't find ..?

otherwise.. ..beats me..!

try to make the code as small as possible.. remove things until you can make an exe file that works..


keyboard(Posted 2003) [#6]
Flynn

when you say "executables", do you mean

1:you've written a program and made an executable, or

2:are you just trying to run your code "as an executable" from the ide?

cos if 1, you may just have an exe thats in the wrong spot, and can't find the files it needs.

if 2, then as CS_TBL says, trouble shoot the code by reming everything till it works, then start from there.

Take heart, its usually somethng so simple you will feel like an idiot, and that feeling will come AGAIN and AGAIN...

don't get me started....


[edit]by reming, I mean put a ';' in front of the line to stop the compiler from acting on it[/edit]


CS_TBL(Posted 2003) [#7]
Most of the time, the most strange and irritating bugs are based on the smallest and simplest mistake. You can spend days on tracking them..


Angel(Posted 2003) [#8]
when keyboard says "reming" he means "commenting" it, as in commenting it out...

I'm assuming he said reming because of the ol' QBASIC/QuickBASIC days, where instead of ";" you used "REM" which is short for "REMARK"...

Man, qbasic...the old days...seems so long ago...*sigh*


popey(Posted 2003) [#9]
LOL "ol' QBASIC/QuickBASIC days"..

REM dates back a LOT further than Microsoft Quick Basic.. :)

Sinclair basic for one :)


keyboard(Posted 2003) [#10]
I can't REM ember

ouch!ouch!ouch!

sorry :)