This commit is contained in:
2026-09-17 10:22:49 +08:00
parent bfa3106a69
commit 8f2d00155b
41 changed files with 4244 additions and 698 deletions
@@ -339,7 +339,14 @@ Class LocalApp
</h3>
<div class="markdown level1 summary"><p>Cleans up the application by stopping services and logging out licenses.</p>
<div class="markdown level1 summary"><p>Cleans up the application by stopping services and logging out licenses.
Call it LAST &ndash; after the host has stopped serving and disposed everything
that drives the native core (display engines, the project service with its
play and workpiece trees). On Linux, exit() runs the native library's static
destructors while any thread still inside it keeps running, so every native
caller has to be finished before Main returns; hooking this at the START of
a host's shutdown (ASP.NET Core's ApplicationStopping) is what crashed
HiNC-1 on four deploy stops in 2026-09.</p>
</div>
<div class="markdown level1 conceptual"></div>