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:
parent
959ccebc26
commit
bcc8389ae8
2 changed files with 2 additions and 2 deletions
|
@ -1137,7 +1137,7 @@ void BFGC::ProcessSweepInfo()
|
||||||
//::MessageBoxA(NULL, "Leak", "Leak", MB_OK);
|
//::MessageBoxA(NULL, "Leak", "Leak", MB_OK);
|
||||||
|
|
||||||
//#if 0
|
//#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" : "");
|
mSweepInfo.mLeakCount, (mSweepInfo.mLeakCount != 1) ? "s" : "");
|
||||||
gDbgErrorString = errorStr;
|
gDbgErrorString = errorStr;
|
||||||
gDbgErrorString += "\n";
|
gDbgErrorString += "\n";
|
||||||
|
|
|
@ -416,7 +416,7 @@ void BFGC::RawShutdown()
|
||||||
|
|
||||||
if (mSweepInfo.mLeakCount > 0)
|
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" : "");
|
mSweepInfo.mLeakCount, (mSweepInfo.mLeakCount != 1) ? "s" : "");
|
||||||
gDbgErrorString = errorStr;
|
gDbgErrorString = errorStr;
|
||||||
gDbgErrorString += "\n";
|
gDbgErrorString += "\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue