Error!
Success!

By tag: dispose

showing:  of
0
kicks

The Disposable Pattern  (Unpublished)

Simple explanation of the Disposable Pattern in .NET for developers new to garbage collection. Explains when to implement the IDisposable interface only, where a finalizer is required and why you mustn't call into other objects from the finalizer thread. Also shows common use cases illustrating when...


Kicked By:
Drop Kicked By:
0
kicks

What If I Don’t Call Dispose() on my LINQ to SQL DataContext Object?  (Unpublished)

Steven Walther recently posted on the subject of disposing of DataContext objects and provided some interesting insight into what actually happens. From what he says it sounds like the DataContext object acts much like the SqlDataAdapter class. It opens the connection right before a query is execu...


Kicked By:
Drop Kicked By:
0
kicks

CA1816 - Dispose Pattern  (Unpublished)

Warning CA1816 : Microsoft.Usage : Change 'xxx.Dispose()' to call 'GC.SuppressFinalize(object)'. This will prevent unnecessary finalization of the object once it has been disposed and it has fallen out of scope.


Kicked By:
Drop Kicked By:
0
kicks

Things you MUST dispose  (Unpublished)

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 me...


Kicked By:
Drop Kicked By: