I´m using Powershell with MahApps to display a GUI for the PS script.
After migrating from version 1.6.5 to 2.4.5, the display of dialogs no longer works. I get an exception with
"The calling thread cannot access this object because the object is owned by another thread."
Describe the bug
I´m using Powershell with MahApps to display a GUI for the PS script. After migrating from version 1.6.5 to 2.4.5, the display of dialogs no longer works. I get an exception with
"The calling thread cannot access this object because the object is owned by another thread."
Steps to reproduce
A description of how to trigger this bug.
Github repository: https://github.com/SirConfigMgr/InplaceNotification UserInfo.ps1 in Line 459
Expected behavior
Dialog should be displayed
Actual behavior
Powershell crashes
Environment