(D3DXMATERIAL*)TreeMatBuffer-GetBufferPointer() break in debugger

Started by
0 comments, last by Buckeye 13 years, 9 months ago
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]
Advertisement
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.

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.

This topic is closed to new replies.

Advertisement