- 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 532a726ae3
commit 262e93db2b
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
// that still exist are properly taken down before the low level data is deleted.
GC::FullGC();
GC::FullGC();
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);
// Use this to break at a specific allocation number.
//_crtBreakAlloc = 227524;
_crtBreakAlloc = 380659;
#endif
int ret = DoMain (hInstance);