Damn MSDN!

  • Thread starter Peter Morris [Droopy eyes software]
  • Start date
P

Peter Morris [Droopy eyes software]

http://msdn2.microsoft.com/en-us/library/sk6k8h17.aspx

Now that clearly says that WeakReference(object, bool) is supported on CF2
doesn't it?

So I've changed my code to give my objects a minimum life time, and guess
what?

new WeakReference(this, true); throws a NotImplementedException!

Thanks MSDN for wasting 2 hours of my time!
 
G

Guest

Always check the objects directly (through Object rowser or Reflector) when
you suspect that a method you're not used before isn't there. The overload
must not have shown in intellisense in the first 5 minutes of trying.

-Chris
 
P

Peter Morris [Droopy eyes software]

Always check the objects directly (through Object rowser or Reflector)
when you suspect that a method you're not used before isn't there.

That's the problem, I had no reason to suspect it wasn't there :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top