Sign in to follow this  
rom87

Visual c++ configuration error

Recommended Posts

Hi i have a problem ive complied a vc++ express edition 2008 form .Net 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 namehere].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 why and what settings need to be changed ?

Share this post


Link to post
Share on other sites
Quote:
Original post by yewbie
Are there any dll's its loading or any configuration or resource files? that might be present in that folder?
I guess not because the debug build runs fine outside of the project folder but not the release build i havnt added any requiments for the exe to use any anything external as far as im aware ive tried reinstalling the redistributable package from MS but still luck.

Share this post


Link to post
Share on other sites
You could try running a program called Dependency Walker, it will allow you to profile your program and see where it is crashing or what its trying to load.

Edit: wrong program name, now fixed!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this