Skip to main content
GameDev.net gamedev.net
🔒 Locked

VC++ Debug/Release Differences?

Started by SKerner Oct 23, 2005 at 3:15 PM 4 replies 750+ views
Original Post
SKerner
SKerner
If written a programm using QT to display a GUI with an OpenGL box. In this OpenGL box I'm drawing a tree using cylinder shaped objects build with Triangle Strips. Everything works fine using the debug version. But if i switch to the release version everything in the OpenGL window is out of propotion. The cylinder objects are much longer than before. They still have the same thickness and the leaves also have the correct size. So everything looks very wierd. Any idea?
Nickolay_Smirnov
Nickolay_Smirnov
First thing, that came to my mind, is that, when you set your project in Debug version and then switch to Release, you'll have to add lib files in Link folder of project settings again. Maybe something must be changed except that.
Cogito ergo sum (Descartes)
_the_phantom_
_the_phantom_
in debug mode variables are initalised to zero, in release mode they arent, chances are you've missed a variable initalisation somewhere, recheck your code [smile]
spookycat
spookycat
Set your warning level to 4 and fix everything you can from your code, that should show up any variables you dont initialise.
SKerner
SKerner
Where can I set my warning level to 4? I'm quite new to Visual Studio.
Nickolay_Smirnov
Nickolay_Smirnov
Quote:
Original post by SKerner
Where can I set my warning level to 4? I'm quite new to Visual Studio.


Go to Project -> Settings. There, on list C/C++ you'll find warning level. By default it is 3.
Cogito ergo sum (Descartes)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.