Steve,
> I see that GCHandle can encapsulate a weak reference, but gcroot appears to
> only allow 'normal' GCHandles. Is this correct or is there something I've
> missed?
It's not surprising, given the main use of gcroot. However, it should be
fairly trivial to write an implementation of it that supports other types of
handles (although, in that case, there are a few overloaded operators I'd
avoid...)

Signature
Tomas Restrepo
tomasr@mvps.org
Steve McLellan - 25 May 2004 13:55 GMT
> Steve,
>
[quoted text clipped - 7 lines]
> handles (although, in that case, there are a few overloaded operators I'd
> avoid...)
OK, cheers, think I've worked around it. You're right - supporting other
types wouldn't be that hard - but I've a great talent for writing
hard-to-find pointer bugs.
Cheers,
Steve