- call FullGc twice, because once does not seem to be sufficient anymore when the object system is shut down

This commit is contained in:
Christoph Oelckers 2022-12-12 14:44:37 +01:00
parent cc529d7051
commit 121e0bd478
2 changed files with 2 additions and 1 deletions

View file

@ -252,6 +252,7 @@ void PClass::StaticShutdown ()
// Make a full garbage collection here so that all destroyed but uncollected higher level objects // Make a full garbage collection here so that all destroyed but uncollected higher level objects
// that still exist are properly taken down before the low level data is deleted. // that still exist are properly taken down before the low level data is deleted.
GC::FullGC(); GC::FullGC();
GC::FullGC();
Namespaces.ReleaseSymbols(); Namespaces.ReleaseSymbols();

View file

@ -548,7 +548,7 @@ int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE nothing, LPWSTR cmdline, int
_CrtSetDbgFlag (_CrtSetDbgFlag(0) | _CRTDBG_LEAK_CHECK_DF); _CrtSetDbgFlag (_CrtSetDbgFlag(0) | _CRTDBG_LEAK_CHECK_DF);
// Use this to break at a specific allocation number. // Use this to break at a specific allocation number.
//_crtBreakAlloc = 227524; _crtBreakAlloc = 380659;
#endif #endif
int ret = DoMain (hInstance); int ret = DoMain (hInstance);