Does MemoryLeakCheck from "Diagnosing Memory Issues [XAM370]" build?

Just tried to use the MemoryLeakCheck code that appears in the XAM370 slides. Using VS2015, it won't build for me. Even if I add " where T : class", it still complains about IsAlive.

Has IsAlive been deprecated and the XAM370 slide not updated? Or is there something squiffy about my setup?

Best Answer


  • JohnHardmanJohnHardman GBUniversity mod

    Many thanks René - I knew about the limitations of IsAlive, so wondered if it was deprecated because of that.

  • MarkSmith.8123MarkSmith.8123 USXamarin Team, University, XamUProfessors Xamurai

    Yep, that's exactly why it was depreciated -- it's an obvious race condition with no fix.

Sign In or Register to comment.