Be Careful Where You Put GC.SuppressFinalize

added by Paul Wheeler
2/8/2018 2:56:23 PM

1 Kicks, 270 Views

I had an interesting issue to debug which resulted in a race condition where the finalizer was being called while the object was still in use. If you know how .NET works this should ring some alarm bells since this should never happen. The finalizer is expected to run only when no one has a...