I came across the following quote: "Desctructors are not guaranteed to be called." and it scares me a little.
It is further stated that even a finally try block can be interrupted, resulting in a memory leak. This provides a solution, either by placing your code in a CER (restricted execution area), or obtained from a CriticalFinalizerObject .
My question
- What are the traits using
CriticalFinalizerObject , if any? - Were they found anyway from
CriticalFinalizerObject , which was really useful? - Should I worry about using this when starting a memory leak?
Jethro
source share