Exe problem
When i debug an openGL code it works great, Then i try release i change cofig manager to relase from debug and make sure the release is in the directory where the source code will be because it needs a to load a file form there, so far so good, it compiles with no problem but when i go to release folder and click on Exe program i just made i get a dialog box the says cube has encountered a problem and has to close sorry for the inconvenience. What am i doing wrong? I am using Visual C++ express edtion 2008
3dmodeler
Run the the debug and release exes from within Visual Studio. That will allow the debugger to catch were in your code things are breaking.
Release mode optimizes your code and removes a lot of debug checks / padding, so memory errors tend to show up really fast as crashes.
Release mode also optimizes away a lot of information, so once you know where the crash is, you are better off stepping through the debug code to find the same issue since there will be more information for you to use.
If they can't find the files you need when run from visual studio, you can either move the files, or change the project settings so it attempts to the run exe from a different location. But I believe the default run location is the same directory where the project file is.
Release mode optimizes your code and removes a lot of debug checks / padding, so memory errors tend to show up really fast as crashes.
Release mode also optimizes away a lot of information, so once you know where the crash is, you are better off stepping through the debug code to find the same issue since there will be more information for you to use.
If they can't find the files you need when run from visual studio, you can either move the files, or change the project settings so it attempts to the run exe from a different location. But I believe the default run location is the same directory where the project file is.
I tried moving the exe folder to the default directory but same thing happens. I tried stepping through ( never did that before) I see a few lines where GLUT
is mentioned Can you be more specific I know I have everything installed correctly If you think of anything else plase let me know
3dmodeler
is mentioned Can you be more specific I know I have everything installed correctly If you think of anything else plase let me know
3dmodeler
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement