Hi ali,
Seems a simple solution if you know it.
You can't access the WriteableBitmap from another thread (not the thread created it). If you want to do that, you need to freeze your bitmap by calling
WriteableBitmap.Freeze()
first.
And You can't access ...
.Source
in a thread that is not the dispatcher thread.
I think after call to Freeze you will have to create a new Image for the next frame (not shure on that)
Does this help?
Kind regards Johannes