Page 1 of 1

runtime error

Posted: Tue Jul 17, 2007 8:28 pm
by fallguyjg
my 1st fnx basic program runs ok for me on my PC, but others get a runtime error.

"program.exe has encountered a problem and needs to close"

What do other PCs need to execute my program.exe  :question

Thanks,
fallguyjg

runtime error

Posted: Wed Jul 18, 2007 9:35 pm
by Marco
Hi
your program needs nothing only windows.
Except if your program uses files.
Be aware that the exists otherwise you get some problems too.
I don`t know how your program looks like so I can`t give a solution.
Division by zero could cause problems.
Some stringfunctions doesn`t work on empty strings.


You may send me some (piece) of the source code so I can find out what`s wrong.
If I get the same error. (byteshaper@planet.nl)

best regards marco

btw are the other computers with win2k or win98 then compile your program with the new package I putted in the updates section of this bbs.

runtime error

Posted: Wed Jul 18, 2007 9:41 pm
by fallguyjg
Problem Solved.

I was loading a bit map file that did not exist on the other PC.

Thanks for the replies,
fallguyjg

[smiley=happy.gif]

runtime error

Posted: Thu Jul 19, 2007 3:38 pm
by Marco
hi,

before your program loads a file you can do

if fileexists(filename)=false then showmessage(filename+"does not exists")

best regards