locked
Can not access customized WinRT component from different threads in Metro Style C# application RRS feed

  • Question

  • 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.

    Friday, December 2, 2011 4:46 AM

All replies

  • Any idea? We have the same problem. Thanks, chreno
    Wednesday, January 18, 2012 7:51 PM