Top "Finalizer" questions

A finalizer is a special method in an object-oriented language that is executed when an object is garbage collected.

How to implement object counter in Java

An interviewer asked me that How can you implement a class Foo, where you will be able to count instances …

java multithreading counter finalizer
Why should we call SuppressFinalize when we don't have a destructor

I have few Question for which I am not able to get a proper answer . 1) Why should we call SuppressFinalize …

c# .net garbage-collection finalizer suppressfinalize
'Uncaught exception thrown by finalizer' when opening MapActivity

I have these lines in my code: // create tab4 intent = new Intent(this, ActWhereAmI.class) .addFlags(Intent.FLAG_ACTIVITY_CLEAR_…

android exception finalizer mapactivity
Using the Destructor/Dispose of the base class?

In C#, as mentioned in the Documentation, and this nice post's accepted answer, it's stated that classes don't inherit the …

c# dispose destructor idisposable finalizer
What are the Finalizer Queue and Control+ThreadMethodEntry?

I have a WindowsForms app that appears to leak memory, so I used Redgate's ANTS Memory Profiler to look at …

.net winforms memory-leaks finalizer redgate
Garbage Collection and Finalizers: Finer Points

In answering another question* on SO, and the subsequent comment discussion, I ran into a wall on a point that …

c# garbage-collection finalizer
How do I unit test a finalizer?

I have the following class which is a decorator for an IDisposable object (I have omitted the stuff it adds) …

c# .net unit-testing idisposable finalizer