My program is not running from an .exe

Everything else that doesn't fall into one of the other PB categories.
stevylake
User
User
Posts: 24
Joined: Fri Apr 05, 2019 6:50 pm

My program is not running from an .exe

Post by stevylake »

Hello.

So I am pulling my hair out just now. A program will run from the IDE
Compiler > Run

But if I create an .EXE of the program it creates it alright but refuses to run. No windows error. Just a quick spin on the timer and nothing.

Help!

Thanks.
Jeff88
New User
New User
Posts: 8
Joined: Thu Jan 03, 2019 3:05 am

Re: My program is not running from an .exe

Post by Jeff88 »

Does your program depend up which directory it is running?

Put this line in the beginning of the program to show its directory.

Debug GetPathPart(ProgramFilename())
stevylake
User
User
Posts: 24
Joined: Fri Apr 05, 2019 6:50 pm

Re: My program is not running from an .exe

Post by stevylake »

Jeff88 wrote:Does your program depend up which directory it is running?
It is a stand alone utility that uses no outside files. In any case I have tried compiling to the same directory as the source files.
stevylake
User
User
Posts: 24
Joined: Fri Apr 05, 2019 6:50 pm

Re: My program is not running from an .exe

Post by stevylake »

Solved but a quirky bug.

So I saved the program but with an old icon file. Everything worked. I then set the icon to use to be a new one and created the .exe file again but with the same .exe name. The logo didn't change to the new one and it wouldn't run. I changed the name to something else and it created the .exe with the correct logo and ran! Oh dear. Time for bed!!
Post Reply