In the project release mode, my mesh will load up its textures just fine and run without an error.
But running my project in debug mode, my application will crash at this point:
TreeTempMaterials = (D3DXMATERIAL*)TreeMatBuffer->GetBufferPointer();
The debugger tells me
TreeTempMaterials -> pTextureFilename - CXX0030: Error: expression cannot be evaluated.
Edit:
Did some debugging, my paths are screwed up in debugg mode.
For example to my tree mesh. The path in release is:
F:\Orb\Debug\win32\Media\tree.x
but in debug its:
F:\Orb\Debug\win32\M□
Why is this happening?
[Edited by - Tingle on July 14, 2010 8:15:27 PM]
(D3DXMATERIAL*)TreeMatBuffer-GetBufferPointer() break in debugger
Just a guess. Do you have the project settings for Multibyte vs Unicode different for Debug and Release? Also, the error you posted doesn't seem to match up with the TreeTempMaterials=.. line. Getting a buffer pointer shouldn't result in an evaluation of a pTextureFilename. Post some code around the line where the actual error occurs.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement