Jump to content
• Advertisement

Archived

This topic is now archived and is closed to further replies.

VC++ Debug/Release Differences?

This topic is 6337 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

In my project I am loading a Milkshape model as done in the NeHe tutorial, I use "Data//Models//model.ms3d" as the loading path. When I compile a Debug executable the model is loaded and displayed perfectly, but when I compile a Release executable the model is not displayed, the model loader reports that the model was loaded perfectly. Everything else in the scene is visible, except for the absence of the milkshape model? Could this be because of the use of ''double slashes'' in the models path? I always thought that ''single slashes'' were correct? Thanks in advance, Ozz.

Share this post

Share on other sites
Advertisement
AFAIK, "Data\\Models\\model.ms3d" == "Data/Models/model.ms3d". Don''t know about the double /.

Share this post

Share on other sites
Yup "Data/Models/model.ms3d" works fine in debug mode, but in Release the model still isnt displayed.

Share this post

Share on other sites
I though the windows file system used backwards slashes, so "\", but they need to be escaped, so they are written "\\", but I could be wrong. Also try moving, or copying, your Data folder to your Release directory. Or, try moving it to the root directory of your project.

My Geekcode: "GCS d s: a14 C++$P+(++) L+ E-- W+++$ K- w++(+++) O---- M-- Y-- PGP- t X
R- tv+ b++ DI+(+++) D- G e* h!"
Decode my geekcode!
Geekcode.com

Visit our web site:
Asylum Entertainment

Share this post

Share on other sites
The data directory is already in root directory of my project.

Share this post

Share on other sites
well, the program is searching for the file relative to where the program is being executed.. so if the release .exe is executed from C:\MyProject\Release, it will look for your data file in C:\MyProject\Release\Data\Models\model.ms3d.. however, when you click on the debug button in the MSVC++ IDE, it executes it from the root directory of your project (i think it does the same for release, though..), and looks for it in C:\MyProject\Data\Models\model.ms3d

Gruad the Dealy Lama

"What sounds to you like a big bloat of trashy old noise
is in fact the brilliant music of a genius--myself" ~ Iggy Pop

Share this post

Share on other sites
I think youre missing a point, you see the Model Loader complains if it cant find the model. It is not complaining therefore it can find the model The problem is that it is being rendered in Debug mode, but not in Release.

Im completly stumpted by this one! Thanks for your input.

Share this post

Share on other sites
IMHO this is a bug with VC
basically what it does in debug build is clean a lot of things for u.

check all your code for uninitialised points values , bogus memory etc.
check the help for the difference between debug + release builds

http://members.xoom.com/myBollux

Share this post

Share on other sites
Ok, I don''t have any problem with it. Tell me:
1. are you using the same code, or modified code as the tutorial?
2. are you using the same model or your own? If your own, please email it to me at brettporter@yahoo.com and I''ll have a look as to what''s wrong as I wrote the model tut.

Hope I can help!

~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL

Share this post

Share on other sites

• Advertisement

Announcements

• Advertisement

• Popular Now

• 22
• 10
• 19
• 14
• 20
• Advertisement
• Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!