I am building a WPF program that does some image acquisition, processing and displaying with a Image object. Currently I summon new a thread from c++ to do the acquisition and processing, then update the Image through callbacks.
It seems when I access the Image.source in the callback, it throws a exception of something like "cannot access this object because another thread own it". I tried to construct the Image and access the Image.source both in the STA thread but the same exception occurs. How should I deal with this?
Much appreciated.