Advertisement

VC++ Debug/Release Differences?

Started by January 14, 2001 06:27 AM
7 comments, last by Ozz 23 years, 10 months ago
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.
AFAIK, "Data\\Models\\model.ms3d" == "Data/Models/model.ms3d". Don''t know about the double /.
Advertisement
Yup "Data/Models/model.ms3d" works fine in debug mode, but in Release the model still is`nt displayed.
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
My Geekcode: "GCS d s: a14 C++$ P+(++) L+ E-- W+++$ K- w++(+++) O---- M-- Y-- PGP- t XR- tv+ b++ DI+(+++) D- G e* h!"Decode my geekcode!Geekcode.com
Visit our web site:Asylum Entertainment
The data directory is already in root directory of my project.
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
=======================================Matt Welch"What sounds to you like a big bloat of trashy old noiseis in fact the brilliant music of a genius--myself" ~ Iggy Pop
Advertisement
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.
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
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
~~~Cheers!Brett PorterPortaLib3D : A portable 3D game/demo libary for OpenGLCommunity Service Announcement: Read How to ask questions the smart way before posting!

This topic is closed to new replies.

Advertisement