Questions tagged as 'garbage-collector'

1
answer

Can you notify us that there will be a garbage collection?

I am studying about the garbage collector of .NET and wanted to know if there is an event I can sign up to and always know when a collection will be made.     
asked by 08.05.2017 / 16:46
1
answer

Removing a DOM element also removes your listening?

I already know about the Dirt Collector feature. My question is regarding this resource for addEventListener . Example test.addEventListener('mouseover', function(){ test.className = 'active'; }); test.addEventListener...
asked by 29.10.2017 / 14:58
1
answer

Connection pool with ADO.NET and Dispose of SqlConnection, what is correct to do?

Yesterday I asked a question yesterday about What is the difference between implementations of IDisposable? I was implementing a class to help get instances of SqlConnection , SqlCommand , SqlDataReader methods Execute...
asked by 24.06.2015 / 16:26
1
answer

Difference between null and clear in an ArrayList

What's the difference between: arrayList.clear(); and arrayList = null; Do not both destroy all elements of the ArrayList?     
asked by 29.08.2014 / 05:39
1
answer

Garbage Collector for C ++

I clearly understand what a Garbage Collector is and what a Garbage Collector is for. It is very well known in Java. Is there a library in C ++ that implements GC or fixes memory lLeaks? I have already searched the internet but it always...
asked by 14.12.2015 / 18:28
2
answers

Memory leak in XmlSerializer

I have the code below. Since the method is static and XmlSerializer does not implement Dispose , every method call, the system heaps in memory or GC garbage collector ) can clear this variable ? And in the case of c...
asked by 27.10.2015 / 17:21
1
answer

Impact of Garbage Collector

The project here is done in Windows Forms and we do not manage the memory very well because it is a legacy system that has several years running. We are currently experiencing problems with a lack of memory on the computers where the system...
asked by 20.09.2016 / 19:36
1
answer

Garbage collector is automatic?

I noticed that my application was deliberately consuming the memory even after the end of processing, even finalizing everything that was started so I called the GC.Collect(); and the memory was released. Garbage collector should not...
asked by 12.05.2017 / 22:46
2
answers

Advantage of nulling a variable in Android

Assigning the value of null to a variable in Android can improve application performance? As far as I know, in Java we have the Garbage Collector, and on Android the activity cycle of Activities and Fragments. Problem: In a cla...
asked by 27.07.2017 / 14:05
1
answer

When will the object be eligible for GarbageCollector?

From the code snippets below, in which the object created in new Pessoa("João") will be available to the garbage collector in the line: //outras instruções ? They are all independent codes. They are not in the same class or fil...
asked by 22.03.2017 / 13:13