Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

New Post: RPC_E_WRONG_THREAD Thrown When I Try to Create New WriteableBitmap.

$
0
0
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.

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>