Jim Bennett

🤖 I do things with IoT and academic advocacy in the DevRel team at Microsoft.

  Redmond, WA, USA

My book:

Xamarin In Action

Contact me:

  Xamarin In Action
  Twitter
  GitHub
  LinkedIn
  YouTube
  Email
  CV

WeakEvents in PCLs

One of the biggest causes of memory leaks I've seen in C# applications is events. Although C# can't leak in the same way C++ can, it's easy to unintentionally end up with references you weren't expecting - and what a lot of people don't realise or forget is that subscribing to an event holds a reference from the event source to the event target, e…

Read More
 

WeakEvents in PCLs

One of the biggest causes of memory leaks I've seen in C# applications is events. Although C# can't leak in the same way C++ can, it's easy to unintentionally end up with references you weren't expecting - and what a lot of people don't realise or forget is that subscribing to an event holds a reference from the event source to the event target, e…

Read More