StackOverflow Questions for Tag: finalizer

zastrowm
zastrowm

Reputation: 8243

Does GC.SuppressFinalize keep an object rooted

Score: 4

Views: 164

Answers: 1

Read More
Vexx23
Vexx23

Reputation: 101

Registering a method as callback prevents the object from being garbage collected even with a finalizer that unregisters the callback

Score: 0

Views: 40

Answers: 1

Read More
Nathaniel Flath
Nathaniel Flath

Reputation: 16005

Reference to object during finalize

Score: 22

Views: 4272

Answers: 5

Read More
James Groom
James Groom

Reputation: 365

Does AggressiveInlining affect Finalize in any version of .NET?

Score: 1

Views: 67

Answers: 1

Read More
andy
andy

Reputation: 4281

What will the Finalizer thread do if there is an infinite loop or deadlock in the Java finalize method?

Score: 18

Views: 7719

Answers: 3

Read More
RasCode
RasCode

Reputation: 1

def __del__(self) is automatically called and i don't know how to stop it

Score: -1

Views: 80

Answers: 1

Read More
Shane
Shane

Reputation: 1216

Ensure that dotnet Tasks are stopped when they go out of garbage collector scope

Score: 1

Views: 102

Answers: 1

Read More
Spenduku
Spenduku

Reputation: 417

Finalizer not called

Score: 11

Views: 9396

Answers: 4

Read More
Babu James
Babu James

Reputation: 2843

There is no finalizer in the .NET Core HttpMessageInvoker

Score: 0

Views: 31

Answers: 0

Read More
GraemeF
GraemeF

Reputation: 11457

How do I unit test a finalizer?

Score: 21

Views: 9737

Answers: 5

Read More
Ignacio Soler Garcia
Ignacio Soler Garcia

Reputation: 21855

Finalizer bloqued hanging the application

Score: 0

Views: 1205

Answers: 1

Read More
Virus721
Virus721

Reputation: 8315

How to achieve constructor / destructor symmetry, for Java

Score: 0

Views: 224

Answers: 2

Read More
Klaus
Klaus

Reputation: 50

How do I properly save state in case of an exception in python?

Score: 1

Views: 1133

Answers: 2

Read More
David
David

Reputation: 197

Why do we need the finalizer in the disposable pattern if it is not guaranteed that it will be called by the garbage collector?

Score: -1

Views: 120

Answers: 1

Read More
jstuardo
jstuardo

Reputation: 4373

Compiler is forcing me to Implement a finalizer or destructor on '...'

Score: -1

Views: 207

Answers: 1

Read More
Bob
Bob

Reputation: 21

java.lang.ref.Finalizer piled up

Score: 0

Views: 33

Answers: 0

Read More
progquester
progquester

Reputation: 1766

How to ensure that a function is called to release resources when an object is GCed in Kotlin?

Score: 0

Views: 28

Answers: 0

Read More
silverberry
silverberry

Reputation: 842

Unexpected call to Finalizer::register

Score: 0

Views: 62

Answers: 1

Read More
J.J. Beam
J.J. Beam

Reputation: 3059

Why is the finalize() method deprecated in Java 9?

Score: 34

Views: 31848

Answers: 1

Read More
Luke Vo
Luke Vo

Reputation: 20638

When should I NOT call GC.SuppressFinalize(this) in Dispose?

Score: 4

Views: 1507

Answers: 1

Read More
PreviousPage 1Next