Page 1 of 1

Texture problem with RTTI (RealTime Type Info)

Posted: Tue Dec 21, 2010 5:39 am
by iRobo
Hi,
I've implemented LUA script (using LUABIND) in my project. to do that I had to build Irrlicht again with RTTI (RealTime Type Info) enabled.

since I built Irrlicht with RTTI enabled I get this error on using driver->getTexture or driver->addTexture commands :

Code: Select all

0xC0000005: Access violation reading location 0x00000001
It's funny, it wouldn't be any error if getTexture doesn't find the texture file! just my model stays white! but the error occurs when it finds the texture file.

I didn't have this problem before.

I tried several things and I'm almost sure that RTTI is my problem.

am I right about the RTTI? does it have anything to do with Irrlicht Textures?
how can I fix this?

Posted: Tue Dec 21, 2010 8:04 am
by hybrid
No, there shouldn't be any intereference with RTTI. Moreover, reading a 0x1 is very strange, as a failed dynamic cast would return 0x0 instead. I'd bet that you still have some old object files lurking around, which do not have the RTTI compiled in, but the run-time assumes so. This can lead to very severe crashes of this kind.