can you tell me why it throws the error "Error on calling 'OnRender' method on bar 2999: The calling thread cannot access this object because a different thread owns it."?
I have an Array of Brushes which gets accessed in a method that is called by OnRender. And whenever it does it, it throws the above error. When I access the array directly in OnRender, it still throws the error. When I access the array in OnBarUpdate, however, it doesn't throw the error and accesses the array's brush accordingly. My guess is that OnRender uses a different thread, but why it only happens with brush arrays, and how to solve it, I have little clue. Please advise me.
Greetings
Comment