Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DYN-7701] Dynamo freeze on Run All in some cases #77

Merged
merged 7 commits into from
Nov 5, 2024

Conversation

ivaylo-matov
Copy link
Contributor

PR to address DYN-7701

In some cases, running "Run All" was causing Dynamo to freeze up with no error messages. After looking into it, it seems the issue was due to long-running updates blocking the UI thread. I've used Task.Run and uiContext.Post to handle these updates in the background, which seems to keep things running smoothly.

For consistency and to streamline the code, I also replaced collection.Dispatcher calls with uiContext.Post, as Dispatcher was causing some problems in Civil 3D anyway. I've also separated the UI update code from the main methods to clean-up the logic.

DYN-7701-Working_cut_lowres

@reddyashish
Copy link
Contributor

@ivaylo-matov resolve the conflicts on this.

@ivaylo-matov
Copy link
Contributor Author

seen the fail. looking into it

@reddyashish reddyashish merged commit c90f1ec into DynamoDS:master Nov 5, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants