nataz
19-11-2010 21:08:01
Gentlemen -
I experiencing something pretty strange... I am using the latest (1.7.1) MOgre build in my project. Everything seems to work fine but every once in a while (seems pretty random to me), I get a Access Violation Exception in renderOneFrame().
The Access Violation is happening here:
In OgreLodStrategy.cpp
Debuggin depper,shows that this is happening somewhere in the vector implementation, where it is trying to access something that is not present. Did anyone experience this issue before and does anyone know how to fix it?
Regards
nataz
I experiencing something pretty strange... I am using the latest (1.7.1) MOgre build in my project. Everything seems to work fine but every once in a while (seems pretty random to me), I get a Access Violation Exception in renderOneFrame().
The Access Violation is happening here:
ushort LodStrategy::getIndexDescending(Real value, const Material::LodValueList& materialLodValueList)
{
Material::LodValueList::const_iterator i, iend;
iend = materialLodValueList.end();
unsigned short index = 0;
for (i = materialLodValueList.begin(); i != iend; ++i, ++index)
{
if (*i < value)
{
return index ? index - 1 : 0;
}
}
// If we fall all the way through, use the highest value
return static_cast<ushort>(materialLodValueList.size() - 1);
}
In OgreLodStrategy.cpp
Debuggin depper,shows that this is happening somewhere in the vector implementation, where it is trying to access something that is not present. Did anyone experience this issue before and does anyone know how to fix it?
Regards
nataz