locked
C++/CX, unsealed classes consumable from worker threads

    Question

  • I'm currently working on a C++/CX library to be consumed by Windows Store Apps. One of the problems I have is that I want to create some public classes that are not sealed, but I can't figure out how to make them consumable from a background thread.

    Basically, any public class that is unsealed needs to derive from some other unsealed class. The problem is that the only class I've found that works as a base class is Windows::UI::Xaml::DependencyObject. This (I think it's this) causes an exception of the type "The application called an interface that was marshalled for a different thread".

    Now, these classes that I'm using really don't correspond to UI elements, so it would be nice if I could derive from something else.

    Any suggestions?

    Thanks,

    Tomas

    Tuesday, December 11, 2012 2:16 AM

All replies

  • I'm going to bump this. I hope someone knows what's going on here?

    Friday, December 14, 2012 4:18 PM