Crash in: cd3d9driver.cpp

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
3dsolar
Posts: 15
Joined: Wed Feb 06, 2008 9:36 am
Contact:

Crash in: cd3d9driver.cpp

Post by 3dsolar »

Hi,

We run a program that time to time crashes here:

In cd3d9driver.cpp line 741

if (texture && texture->getDriverType() != EDT_DIRECT3D9)

"if (texture && texture->getDriverType() != EDT_DIRECT3D9)
> Irrlicht.dll!irr::video::CD3D9Driver::setTexture(int stage=0, irr::video::ITexture * texture=0x057794e0) Line 741 + 0x13 C++"

Any Idea ?

Thanks
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

It looks like the texture pointer texture that is passet to setTexture() is invalid. i.e. it points to a texture that has been unloaded or otherwise destroyed.

Are you removing textures from the texture cache, or maybe calling drop() on texture pointers? You shouldn't drop() a texture unless you have explicitly called grab() on it. If you have removed the textures from the cache, but haven't grabbed them, are you making absolutely sure that no scene node materials reference those textures?

Travis
Post Reply