- Replaced blocking Dispatcher.Invoke() calls with non-blocking Dispatcher.BeginInvoke() in MainViewModel, osBase, and ObjectManipulationManager to enhance responsiveness during simulations. - Added checks for Dispatcher availability to prevent crashes during application shutdown. - Implemented comprehensive error handling with try-catch blocks and logging for better debugging. - Corrected hydraulic connection logic to use component names instead of IDs for better accuracy in osHydPump. - Introduced methods for safe Dispatcher invocation with timeout handling in MCPServer. - Enhanced debug logging for better traceability of errors and server status. - Documented threading improvements and their impact on MCP stability in new markdown files. |
||
---|---|---|
.. | ||
Components | ||
TSNetINPGenerator.cs | ||
TSNetSimulationManager.cs | ||
TSNetTestProgram.cs | ||
test_tsnet_integration.py |