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


Link to post
Share on other sites
Advertisement
Yup "Data/Models/model.ms3d" works fine in debug mode, but in Release the model still is`nt displayed.

Share this post


Link to 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


Link to 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


Link to post
Share on other sites
I think you`re missing a point, you see the Model Loader complains if it can`t 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.

I`m completly stumpted by this one! Thanks for your input.

Share this post


Link to 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


Link to 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


Link to post
Share on other sites

  • 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!