locked
Weak reference to ref class

    Question

  • Is there any way to create a weak reference to a ref class? If not, can ^ references be released and be used afterwards as weak refs?

    I found some information about the WeakRef and IWeakReference classes, but I didn't find anything about how to use them, except the following blog post:http://paoloseverini.wordpress.com/2011/10/04/weak-references-and-how-to-write-winrt-classes-without-wx/, but this seems to be overkill in this situation (fully implement the boilerplate COM-code by hand just to be able to have weak references?).

    There are similar threads in the forum, but they are quite old, I hope the situation improved since the Dev and the Consumer previews.

    Monday, July 30, 2012 8:12 AM

Answers

All replies