Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WrongThreadException when debugging app #2929

Open
briangabriel opened this issue Mar 18, 2019 · 1 comment
Open

WrongThreadException when debugging app #2929

briangabriel opened this issue Mar 18, 2019 · 1 comment

Comments

@briangabriel
Copy link

When starting the app via the debugger in VS2017 it exits almost immediately with the following unhandled exception:

Exception thrown at 0x76FF07F2 (KernelBase.dll) in vfl-ipad-01.exe: WinRT originate error - 0x8001010E : 'The Application Object must initially be accessed from the multi-thread apartment.'.
Exception thrown at 0x76FF07F2 in vfl-ipad-01.exe: Microsoft C++ exception: Platform::WrongThreadException ^ at memory location 0x0657E8C8. HRESULT:0x8001010E The application called an interface that was marshalled for a different thread.
WinRT information: The Application Object must initially be accessed from the multi-thread apartment.

@Liastre
Copy link

Liastre commented Aug 21, 2019

It might be that you trying to sent notification to NSNotificationCenter from another thread than main. Really hard to say without the code or any clues about actual place where you caught the exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants