MindscapeHQ / raygun4net

Raygun provider for .NET
https://raygun.com
MIT License
125 stars 91 forks source link

Fix Issue Where WeakReference Delegate is Garbage Collected While Client is Alive #529

Closed ProRedCat closed 6 months ago

ProRedCat commented 6 months ago

Fixes an issue where the reference to the delegate that sends unhandled exceptions to the client is garbage collected despite the client being alive. This can cause uncaught exceptions not to be reported to Raygun.

This is fixed by adding a strong reference in the client so that while the client is alive the delegate should be alive too.