Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Using with unity - "The application called an interface that was marshalled for a different thread" error #278

@thisloginalsotaken

Description

@thisloginalsotaken

Hello.
I am trying to use this library with Unity application. I have created small library project and use it as "managed plugin" in Unity.
Unity version is 2018.3.6 (I tried 2019.1, with same result)
winsdkfb version is 0.15.0, installed with nuget.

Calling to session.LoginAsync always gives me WinRT originate error - 0x8001010E : 'The application called an interface that was marshalled for a different thread.'

I have tried wrapping the call in Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsyncwith no success. Rewriting the code to use without using async/await, with
session.LoginAsync(permissions).AsTask().ContinueWith((Task<FBResult> t) => {...}) also did no good.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions