Crash in editor( mFirstResponder Corrupt) 1.5
by Terence Tan · in Torque Game Engine · 02/28/2007 (2:19 am) · 0 replies
Been having a fair bit of crashes recently while using the editor. It seems be mostly around drag selecting and alot of copy/pasting.
The crash occurs in the engine at:
The mFirstResponder pointer seems have to gotten corrupted because in inspecting it, the mClassName has been assigned to 0xcececece which is a bad ptr. Besides NOT drag selecting and copy/pasting alot ...I'm not sure how to fix this yet.
Anybody run this problem? It's starting to get annoying...I will try debugging it by putting a few asserts to week out where the variable get's set as such..Possibly a memory trashing issue as well?
The crash occurs in the engine at:
bool GuiCanvas::processInputEvent(const InputEvent *event)
{
// AFX CODE BLOCK (canvas) <<
mConsumeLastInputEvent = true;
// AFX CODE BLOCK (canvas) >>
// First call the general input handler (on the extremely off-chance that it will be handled):
if ( mFirstResponder )
{
if ( mFirstResponder->onInputEvent( *event ) ) <------Crash
// AFX CODE BLOCK (canvas) <<
return mConsumeLastInputEvent;
/* ORIGINAL CODE
return( true );
*/
// AFX CODE BLOCK (canvas) >>
}The mFirstResponder pointer seems have to gotten corrupted because in inspecting it, the mClassName has been assigned to 0xcececece which is a bad ptr. Besides NOT drag selecting and copy/pasting alot ...I'm not sure how to fix this yet.
Anybody run this problem? It's starting to get annoying...I will try debugging it by putting a few asserts to week out where the variable get's set as such..Possibly a memory trashing issue as well?
About the author