Open john-peterson opened 11 years ago
In the Debug build
because
_CRTDBG_DELAY_FREE_MEM_DF (added in e4785df) keep freed heap to allow detection of read/write to it
_CRTDBG_DELAY_FREE_MEM_DF
This is the output from closing a Crazy Taxi NTSC emulation twice for
the Debug build
50:42:490 Src\Core.cpp:491 I[CONSOLE]: Stop [Video Thread 24932] 504 616 K Shutting down HW 50:42:653 Src\Core.cpp:493 I[CONSOLE]: Stop [Video Thread 24932] 441 020 K HW shutdown 50:42:747 Src\Core.cpp:266 I[CONSOLE]: Stop [Main Thread 4480] 404 232 K Main Emu thread stopped 51:03:993 Src\Core.cpp:491 I[CONSOLE]: Stop [Video Thread 18156] 812 644 K Shutting down HW 51:04:163 Src\Core.cpp:493 I[CONSOLE]: Stop [Video Thread 18156] 749 084 K HW shutdown 51:04:248 Src\Core.cpp:266 I[CONSOLE]: Stop [Main Thread 4480] 713 228 K Main Emu thread stopped
the DebugFast build
48:24:582 Src\Core.cpp:491 I[CONSOLE]: Stop [Video Thread 20200] 334 960 K Shutting down HW 48:27:126 Src\Core.cpp:493 I[CONSOLE]: Stop [Video Thread 20200] 126 264 K HW shutdown 48:27:218 Src\Core.cpp:266 I[CONSOLE]: Stop [Main Thread 16532] 69 620 K Main Emu thread stopped 48:47:768 Src\Core.cpp:491 I[CONSOLE]: Stop [Video Thread 7332] 333 444 K Shutting down HW 48:51:567 Src\Core.cpp:493 I[CONSOLE]: Stop [Video Thread 7332] 127 692 K HW shutdown 48:51:654 Src\Core.cpp:266 I[CONSOLE]: Stop [Main Thread 16532] 71 012 K Main Emu thread stopped
_CRTDBG_DELAY_FREE_MEM_DF should be disabled because
Memory
Problem
In the Debug build
because
_CRTDBG_DELAY_FREE_MEM_DF
(added in e4785df) keep freed heap to allow detection of read/write to itLog
This is the output from closing a Crazy Taxi NTSC emulation twice for
the Debug build
the DebugFast build
Solution
_CRTDBG_DELAY_FREE_MEM_DF should be disabled because