InvokeRequired in wpf [duplicate]
In WPF, the Invoke method is on the dispatcher, so you need to call Dispatcher.Invoke instead of Invoke. Also, there is no InvokeRequired property, but the dispatcher has a CheckAccess method (for some reason, it’s hidden in intellisense). So your code should be: delegate void ParametrizedMethodInvoker5(int arg); void log_left_accs(int arg) { if (!Dispatcher.CheckAccess()) // CheckAccess … Read more