mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-06 14:12:10 -04:00
The dialog relied on Progress<T> and an await continuation capturing SynchronizationContext.Current when planning started. WinForms uninstalls its ambient context when the outermost DoEvents loop ends, so a plan started outside a message loop reported progress from a thread-pool thread and crashed the test host with "Error creating window handle" (windows-desktop job of run 37398775280, CuttingPlanFormTests.ApplyAfterALiveEdit_ChangesNothingAndReplanRecovers). Capture the dialog's context once when it is built and post progress and the finished plan to it explicitly. The busy-editor test now starts planning after a DoEvents loop to cover that path.