mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Core: Dbg mode heap leaks now Panics
git-svn-id: svn://ultimatepp.org/upp/trunk@7128 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ff0f80a531
commit
af8503548b
1 changed files with 1 additions and 8 deletions
|
|
@ -179,20 +179,13 @@ void MemoryDumpLeaks()
|
|||
if(!leaks)
|
||||
return;
|
||||
#ifdef PLATFORM_WIN32
|
||||
#ifdef PLATFORM_WINCE
|
||||
MessageBox(::GetActiveWindow(),
|
||||
L"Heap leaks detected !",
|
||||
L"Warning",
|
||||
MB_ICONSTOP|MB_OK|MB_APPLMODAL);
|
||||
#else
|
||||
MessageBox(::GetActiveWindow(),
|
||||
"Heap leaks detected !",
|
||||
"Warning",
|
||||
MB_ICONSTOP|MB_OK|MB_APPLMODAL);
|
||||
#endif
|
||||
#else
|
||||
if(!IsPanicMode())
|
||||
PanicMessageBox("Warning", "Heap leaks detected!");
|
||||
Panic("Heap leaks detected!");
|
||||
#endif
|
||||
Heap::AuxFinalCheck();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue