Jump to content
  • Advertisement
Sign in to follow this  
3dmodeler

OpenGL Exe problem

This topic is 3689 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!