Files
tbf/GenesisCordonelInterface/API
marekf 5950c16dfa <Fix>: Release GCI meter sessions and workers when closing TBF, increase revision to 3.9.3147.137
Cause:

- Closing TBF did not release meter sessions created through the GCI GUI.
- Laatzen keep-session threads could keep the process alive after the main window closed, preventing TBF from starting again.
- A meter disposal failure could interrupt cleanup of the remaining slots and workers.

Solution:

1. Release GCI resources on application exit
   - Dispose GCI diagnostic windows and cancel preadjustment.
   - Clean meter sessions and slot workers even when the bench was never started.
   - Log cleanup failures without skipping other bridge components.

2. Improve cleanup resilience
   - Continue disposing remaining meters if one fails.
   - Release workers and clear slot references even when meter disposal reports an error.
   - Dispose meters outside the batch lock to allow status callbacks during cleanup.

3. Clean resources owned by the standalone GCI view
   - Release its API meter sessions when the view is disposed.

4. Increased revision
   - Updated AssemblyVersion and AssemblyFileVersion from 3.9.3147.136 to 3.9.3147.137.
2026-11-04 12:46:19 +01:00
..