|
-
May 29th, 2009, 05:16 PM
#1
vc++ error
Hi i have a problem ive complied a vc++ express edition 2008 form project in release mode no errors or warnings are produced during compile time but every time i try and execute the release .exe outside the project folder it fails and says '[insert prog name].exe has encounterd a problem and needs to close" however when i execute the debug build .exe outside the project folder it works fine.
Any ideas ?
-
May 30th, 2009, 01:42 AM
#2
Re: vc++ error
You can debug in release mode.
Turn off optimization in C++ option of the project properties.
-
May 30th, 2009, 03:16 AM
#3
Re: vc++ error
It is off everything in the optimization tab is either disabled or turned off.
Any other ideas ?
-
May 30th, 2009, 02:04 PM
#4
Re: vc++ error
yes, now debug it in release
-
May 30th, 2009, 03:10 PM
#5
Re: vc++ error
 Originally Posted by Amleto
yes, now debug it in release 
Done but no change the release build still wont run outside the project but will run inside the project folder and whilst degugging.
Last edited by rom877; May 30th, 2009 at 03:41 PM.
-
May 30th, 2009, 07:40 PM
#6
Re: vc++ error
I think the information provided may be incomplete. Since that the binary doesn't work in other locations, you may like to take a look in your code with files are being handled.
quoted from C++ Coding Standards:
KISS (Keep It Simple Software):
Correct is better than fast. Simple is better than complex. Clear is better than cute. Safe is better than insecure.
Avoid magic number:
Programming isn't magic, so don't incant it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|