Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Debug Exe Fails, Run Debug Works?

Author
Message
FlexiCat
13
Years of Service
User Offline
Joined: 15th Jun 2010
Location:
Posted: 25th Jul 2011 11:40
Heyo forum.

I have got project that compiles a debug and release version perfectly and even runs perfectly when, in visual studio 2008, I press start debugging. However if I go the the projects folder and run the .exe file directly it just crashes...

What would possibly cause the program to work when called form within visual studio and fail outside of it?

Also it does not seem to work in release mode regardless.
Thanks chaps.

I swear to the programmers bible that I shall not harm the FPS.
_Pauli_
AGK Developer
14
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 25th Jul 2011 17:39
Executables that are compiled in Debug mode never work as standalone. I don't know exactly why but I guess they rely on some other files that have debugging information.
You have to compile in Release mode to be able to run the .exe file.
Also make sure that the executable is in the right folder (usually your projects folder, where your code files are) if it is using external media files like images and models.

Bran flakes91093
15
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 30th Jul 2011 03:52
Quote: "Executables that are compiled in Debug mode never work as standalone."


I've never seen this happen. Nevertheless, it is recommended that you use the Release version for testing outside of Visual Studio. It won't contain unnecessary symbols that Debug builds will, and should be a lot more optimized.

“C++ : Where friends have access to your private members.”
-Gavin Russell Baker
vitinho444
13
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 30th Jul 2011 12:15
i used to release the debug ones for my games and they work 80% xD

C++ Medium 3.5/5
VB6 Advanced: 4/5
VB.NET Advanced: 4/5

Login to post a reply

Server time is: 2024-05-23 15:12:57
Your offset time is: 2024-05-23 15:12:57