C#C
C#3y ago
Vеrsette

❔ 'System.ExecutionEngineException' occurred in WindowsBase.dll

My WPF project has a UI part that has bindings to DataContext of the Window, and this DataContext is a class that inherits INotifyPropertyChanged and updates it's properties in a while(true) loop in a separate background thread with a small delay.
But when I hover my mouse over a certain custom control, it errors out with ExecutionEngineException on it's function. When I remove the control, it errors out the same way on DragMove() of the Window. And the only thing that fixes it is not starting the update thread, which means that the issue must be there, but what could it be?
Was this page helpful?