Skip to content
This repository was archived by the owner on Oct 27, 2026. It is now read-only.

v1.10.1 — Stability & Memory Leak Patch

Choose a tag to compare

@kzxl kzxl released this 25 Sep 05:36
· 61 commits to main since this release

What's Fixed

CRITICAL — Memory & Resource Leaks

  • GDI Font Handle Leak — Replaced 37 inline
    ew Font()\ allocations in hot render paths with \ZeroFontCache.Get()\ across 16 files. Prevents process crash from exceeding OS 10K GDI handle limit.
  • WPF Static Event Memory Leak — Fixed 90 WPF controls leaking via \ZeroWpfTheme.ThemeChanged\ static event. Migrated all subscriptions to \Loaded/Unloaded\ lifecycle pattern (89 files).
  • WinForms Static Event Memory Leak — Fixed 52 WinForms controls leaking via \ZeroTheme.ThemeChanged\ static event. Replaced anonymous lambdas with named handlers + \Dispose\ cleanup (50 files).

HIGH — Data Integrity & Stability

  • SCADA TickCount 24.8-Day Rollover — Created \MonotonicClock\ utility using 64-bit \Stopwatch.GetTimestamp()\ to replace \Environment.TickCount\ (Int32 overflow). Affects \ScadaAggregationEngine, \ScadaPipelineCoordinator, \ZPlantMimicCanvas.
  • Unhandled async void Crash — Added try-catch in \ZPdfViewer.OpenFileDialogPrompt()\ to prevent unrecoverable process crash on corrupted PDF load.

MEDIUM — Diagnostics

  • UiDispatcher ThreadPool Fallback — Added \SynchronizationContext.Current\ auto-detection and diagnostic warning before falling back to ThreadPool dispatch.

Stats: 5 commits, 162 files changed, +1,921 −301 lines, 720/720 tests passed