Hi All:
I meet a problem when we try to wrap our old library to WinRT Component. Here is the simplified situation:
1, we create a simply WinRT Component use the standard WinRT Component DLL template.
2, in our Metro Style C# Application, We create that WinRT Component object in one thread.
3, Then when we try access that object in another thread, We got InvalidCastException.
Anyone have any clue about this issue?
BTW:
Seems there is no problem If we use that WinRT Component in Metro Style C++ Application in same method.