Game Development Community

Unhandled exception in player.cc

by Infinitum3D · in Torque Game Engine · 07/02/2008 (1:09 pm) · 2 replies

I'm using Visual C++ 2005 EE

When I shut down TGE, I get an error message,

Unhandled exception at 0x0088eb21 in torqueDemo_DEBUG.exe:
0xC0000005: Access violation reading location 0xb934d37c.

with options to Break or Continue.

Continue repeats the error.
Break brings up the Debugger in player.cc

const Point3F& scale = getScale();
dp[3] = sp[3] * scale.x;

The Call Stack line is
torqueDemo_DEBUG.exe!Player::getEyeTransform(MatrixF*mat=0x0012f154) Line 3054 + 0x6 bytes

It doesn't prevent the game from running correctly. Do I need to fix it? If so, how?

Thanks,
Tony

#1
07/02/2008 (1:31 pm)
We had a stack corruption issue in that function with TGEA. I suppose it's the same thing in TGE and it might be what you are seeing here.

To change it, move the eye matrix out of the if block so that it is scoped to the function. Maybe that solves your issue.
#2
07/02/2008 (2:45 pm)
Thanks, I'll try that.