Log call stack when using a deleted object

Günther Brammer 2011-04-13 15:38:49 +02:00
parent 4ae204e2fb
commit 4575f28605
1 changed files with 4 additions and 1 deletions

View File

@ -258,7 +258,10 @@ ALWAYS_INLINE void C4Value::AddDataRef()
#ifdef _DEBUG
assert(C4PropList::PropLists.Has(Data.PropList));
if (!Data.PropList->Status)
{ LogF("Warning: using ptr on deleted object %p (%s)!", static_cast<void*>(Data.PropList), Data.PropList->GetName()); }
{
LogF("Warning: using ptr on deleted object %p (%s)!", static_cast<void*>(Data.PropList), Data.PropList->GetName());
AulExec.LogCallStack();
}
#endif
Data.PropList->AddRef(this);
break;