Stories recently tagged with 'GC' Subscribe to this feed

Pitfalls and Best Practices to prevent them: Object Finalizers (winsharp93.wordpress.com)

submitted by winSharp93winSharp93(235) 6 months, 15 days ago

A posting talking about the wrong usage of object finalizers (also known as "destructors"). read more...

add a comment | category: | Views: 5

tags: another

How the Garbage Collector works - Part 2 (dotnetfacts.blogspot.com)

submitted by eugenciutaeugenciuta(715) 1 year, 9 months ago

Now let’s go deeper to understand how the Garbage Collector (GC) is actually collecting the dead objects and how this may affect the performance. read more...

1 comment | category: | Views: 8

tags: another

How the Garbage Collector works - Part 1 (dotnetfacts.blogspot.com)

submitted by eugenciutaeugenciuta(715) 1 year, 9 months ago

The Garbage Collector (GC) can be considered the heart of the .NET Framework. It manages the allocation and release of memory for any .NET application. In order to create good .NET applications, we must know how the Garbage Collector (GC) works. read more...

add a comment | category: | Views: 11

tags: another

Things you MUST dispose (dotnetfacts.blogspot.com)

published 1 year, 10 months ago, submitted by eugenciutaeugenciuta(715) 1 year, 10 months ago

When the .NET Framework instantiates an object, it allocates memory for that object on the managed heap. The object remains on the heap until it's no longer referenced by any active code, at which point the memory it's using is reclamed by the Garbage Collector (GC). Before the GC deallocates the memory, the framework calls the object's Finalize() method, but developers are responsible for calling the Dispose() method. read more...

add a comment | category: | Views: 10

tags: another

A good reason for calling GC.Collect() (blogs.msdn.com)

published 2 years, 4 months ago, submitted by jstangroomejstangroome(665) 2 years, 4 months ago

Using GC.Collect to verify object destruction in unit tests. read more...

add a comment | category: | Views: 8

tags: another

Top 20 .Net GC Articles (drowningintechnicaldebt.com)

submitted by dstrommerdstrommer(10) 2 years, 7 months ago

Top 20 .Net GC Articles read more...

add a comment | category: | Views: 2

tags: another

Top 20 .NET Garbage Collection Articles (drowningintechnicaldebt.com)

published 2 years, 7 months ago, submitted by dbottjerdbottjer(310) 2 years, 7 months ago

Ah. Garbage Collection... how I love and hate thee. =P I think one sad thing about programming in .net is that it seems many developers don't know or care anything about garbage collection and memory management. You used to *have* to know about it in order to write bug free code. I suppose it is a two edge sword in that developers can develop faster as the intention was to relieve developers of the need to know or care anything about memory management. I personally have always tried to follow best practices for implementation and have tried to stay somewhat cautious of issues related to memory. I've been fortunate in never really having any memory management related issues in my previous applications. However, there, but for the grace of God, I too could go. read more...

add a comment | category: | Views: 4

tags: another

Managing unmanaged memory (rajkwatra.blogspot.com)

submitted by rajkwatrarajkwatra(245) 2 years, 8 months ago

The title of this post might seem confusing. Garbage Collector (or GC) in .Net is designed to take care of managed memory only, so what do you do in a case where you have a managed object that itself takes very small amount of memory but allocates significant amount of unmanaged resources? In that case.... read more...

add a comment | category: | Views: 7

tags: another

How to Use the Singleton Pattern and the Garbage Collector to Manage a (www.jeremyjarrell.com)

published 2 years, 8 months ago, submitted by jeremyjarrelljeremyjarrell(2685) 2 years, 9 months ago

Here's an easy to minimize the overhead of an expensive resource, such as an image or a network connection, using the singleton pattern and some simple hints to the garbage collector. read more...

add a comment | category: | Views: 10

tags: another

Did it with .NET - Adventures with the Garbage Collector and the JIT O (diditwith.net)

submitted by prasphyprasphy(780) 2 years, 9 months ago

Dan Shechter's code sample that illustrates a certain peculiarity of the .NET garbage collector. read more...

add a comment | category: | Views: 2

tags: another

Adventures with the Garbage Collector and the JIT Optimizer (diditwith.net)

submitted by cls2degcls2deg(1515) 2 years, 9 months ago

This article delves into a certain peculiarity of the .NET garbage collector. Along the way, it explores IL, optimized JIT-compiled code and even the underlying CLR structures. read more...

add a comment | category: | Views: 2

tags: another

Adventures with the Garbage Collector and the JIT Optimizer (diditwith.net)

submitted by cls2degcls2deg(1515) 2 years, 9 months ago

This article delves into a certain peculiarity of the .NET garbage collector. Along the way, it explores IL, optimized JIT-compiled code and even the underlying CLR structures. read more...

add a comment | category: | Views: 2

tags: another

A quiz about the .net garbage-collector (blogs.msdn.com)

published 2 years, 9 months ago, submitted by .NetKicks.NetKicks(1295) 2 years, 9 months ago

Tess lists some "potential interview questions" about the .net GC. He lists the answers in a followup post: http://blogs.msdn.com/tess/archive/2007/04/10/net-garbage-collector-popquiz-followup.aspx read more...

2 comments | category: | Views: 5

tags: another