Texture problem with RTTI (RealTime Type Info)

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
iRobo
Posts: 26
Joined: Mon Aug 23, 2010 1:41 pm
Location: Iran
Contact:

Texture problem with RTTI (RealTime Type Info)

Post 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?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
Post Reply