It is currently Wed Apr 24, 2019 5:43 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: My program is not running from an .exe
PostPosted: Wed Apr 10, 2019 11:21 pm 
Offline
User
User

Joined: Fri Apr 05, 2019 6:50 pm
Posts: 11
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: My program is not running from an .exe
PostPosted: Wed Apr 10, 2019 11:32 pm 
Offline
New User
New User

Joined: Thu Jan 03, 2019 3:05 am
Posts: 8
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())


Top
 Profile  
Reply with quote  
 Post subject: Re: My program is not running from an .exe
PostPosted: Wed Apr 10, 2019 11:42 pm 
Offline
User
User

Joined: Fri Apr 05, 2019 6:50 pm
Posts: 11
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: My program is not running from an .exe
PostPosted: Thu Apr 11, 2019 12:00 am 
Offline
User
User

Joined: Fri Apr 05, 2019 6:50 pm
Posts: 11
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!!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye