question

Markus-3244 avatar image
0 Votes"
Markus-3244 asked RoyLi-MSFT edited

FFImageLoading DownSample marhall exception in UWP

Hi all,

I have the following code in my project:

         image = await ImageService.Instance.LoadFile(filePath)
             .DownSample((int) width)
             .AsJPGStreamAsync(95).ConfigureAwait(false);

In Android and iOS all works fine, but UWP throws an exception: The application called an interface that was marshalled for a different thread.
I tried to call this function with Device.InvokeOnMainThreadAsync(...), but always the same error on UWP. Has anyone an Idea how can I fix this in UWP?

Thank you!

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

NicoZhu-MSFT avatar image
0 Votes"
NicoZhu-MSFT answered

Hello, Welcome to Micorosoft Q&A,

Currently, Microsoft Q&A supports the products listed over here: supported topics (more to be added later on). And FFImage is third-party library, For this, we suggest you post your problem in FFImage github issue box.



If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.









5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.