Crash on onMouseLeave...
by Alexandre Ribeiro de Sa · in Torque Game Builder · 05/29/2007 (10:31 pm) · 1 replies
Hi, I have a problem here, the TGB crash on onMouseLeave some times...
I found some topics about this bug here on GarageGames, but not a solution about it, anyone know something about it?!
here the bug line from t2dSceneWindow.cc file...
Thanks
I found some topics about this bug here on GarageGames, but not a solution about it, anyone know something about it?!
here the bug line from t2dSceneWindow.cc file...
// We have to dance a bit to get onMouseLeave to work
for( U32 i = 0; i < lastPickVector.size(); i++ )
{
t2dSceneObject* lastObject = static_cast<t2dSceneObject*>( lastPickVector[i] );
if( !lastObject )
continue;
bool bFoundNew = true;
for( U32 j = 0; j < pickVector.size(); j++ )
{
t2dSceneObject* object = pickVector[j];
if(!object)
continue;
if( object == lastObject )
{
bFoundNew = false;
break;
}
}
if( lastObject && lastObject->isProperlyAdded() && bFoundNew == true && lastObject->getUseMouseEvents() )
lastObject->onMouseEvent( "onMouseLeave" , event, worldMousePoint ); // crash here
}Thanks
About the author
now with an iPod :D
Torque Owner Neo Binedell
Then I can have a proper look at the issue.