1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Better hints for viewing leaked memory info

This commit is contained in:
Brian Fiete 2020-11-16 17:52:25 -08:00
parent 959ccebc26
commit bcc8389ae8
2 changed files with 2 additions and 2 deletions

View file

@ -1137,7 +1137,7 @@ void BFGC::ProcessSweepInfo()
//::MessageBoxA(NULL, "Leak", "Leak", MB_OK);
//#if 0
Beefy::StringT<1024> errorStr = StrFormat("%d object memory leak%s detected, details in Output panel.",
Beefy::StringT<1024> errorStr = StrFormat("%d object memory leak%s detected.\nMouse over an 'i' icon in the Output panel to view a leaked object and its allocation stack trace.",
mSweepInfo.mLeakCount, (mSweepInfo.mLeakCount != 1) ? "s" : "");
gDbgErrorString = errorStr;
gDbgErrorString += "\n";

View file

@ -416,7 +416,7 @@ void BFGC::RawShutdown()
if (mSweepInfo.mLeakCount > 0)
{
Beefy::String errorStr = StrFormat("%d raw memory leak%s detected, details in Output panel.",
Beefy::String errorStr = StrFormat("%d raw memory leak%s detected.\nMouse over an 'i' icon in the Output panel to view the leaked memory or the associated allocation stack trace.",
mSweepInfo.mLeakCount, (mSweepInfo.mLeakCount != 1) ? "s" : "");
gDbgErrorString = errorStr;
gDbgErrorString += "\n";