Hi guys, I'm developing a game using WaveEngine, and I want to share an image through Facebook API, but when I try to create a new WriteableBitmap using the extension method .FromStream()...it throws the exception:
The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))
Here's my snippet:
_wbmp is a WriteableBitmap object...
_wbmp = await new WriteableBitmap(1, 1).FromStream(_fileStream, BitmapPixelFormat.Unknown);
I already tried to use CoreDispatcher but it keeps throwing the same exception.
Anyone of you've face this before?
Thanks in advance.