NullReferenceException in ~OpMonitor #132

Closed
mcessna opened this Issue Oct 28, 2013 · 0 comments

Comments

Projects
None yet
2 participants
@mcessna

mcessna commented Oct 28, 2013

The Dispose method of Enyim.Caching.Memcached.DefaultPerformanceMonitor.OpMonitor incorrectly calls ((IDisposable)this.pcTotalPerSec).Dispose() when it should be calling ((IDisposable)this).Dispose(). This leads to a NullReferenceException in the OpMonitor finalizer when it is called, which can crash a process:

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
Stack:
at Enyim.Caching.Memcached.DefaultPerformanceMonitor+OpMonitor.Finalize()

Thanks

Mike

@enyim enyim added the wontfix label Apr 24, 2016

@enyim enyim closed this Apr 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment