Commit Graph

5 Commits

Author SHA1 Message Date
Lorenz Junglas
e8ade27155 Fix crash on shutdown when main loop throws exception (#3924)
Environment.Exit triggers DLL unloading which causes native code to callback into managed after CLR shutdown.

Use Plat_ExitProcess instead which terminates immediately without running DLL destructors.
2026-01-28 12:52:05 +01:00
Lorenz Junglas
6808d8768e Shutdown fixes (#3553)
* Stop generating solutions via -test flag add -generatesolution

* Add TestAppSystem remove Application.InitUnitTest

Avoids some hacks and also makes sure our tests are as close to a real AppSystem as possible.

* Add shutdown unit test

shuts down an re-inits the engine

* Properly dispose native resources hold by managed during shutdown

Should fix a bunch of crashes

* Fix filesystem and networking tests

* StandaloneTest does proper Game Close

* Make sure package tests clean up properly

* Make sure menu scene and resources are released on shutdown

* Report leaked scenes on shutdown

* Ensure DestroyImmediate is not used on scenes

* Fix unmounting in unit tests not clearing native refs

* Force destroy native resource on ResourceLib Clear
2025-12-08 15:55:11 +01:00
Lorenz Junglas
af2c9f63d9 Less aggressive shutdown during standalone test (#3438) 2025-11-24 23:39:25 +01:00
Lorenz Junglas
e8a0d480c1 Free native engine dlls before shutdown (#3307) 2025-11-24 17:05:27 +01:00
s&box team
71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00