Contents tagged with Source
-
SDC2011 slides for "How to detect and avoid memory and resources leaks in .NET applications"
The slides and the source code for the session I gave at the Scandinavian Developer Conference today are available:
-
PropertyOf and INotifyPropertyChanged.PropertyChanged without strings
When coding applications using design patterns such as MVP (Model-View-Presenter) or MVVM (Model-View-ViewModel), you'll find yourself using data binding and the INotifyPropertyChanged interface all over the place. This means referencing properties quite a lot.
-
Hex Dump using LINQ (in 7 lines of code)
Eric White has posted an interesting LINQ query on his blog that shows how to create a Hex Dump in something like 7 lines of code.
-
TechDays 2010 session slides and source code
My session about memory leaks in .NET is over. Everything went well.
Thanks Yann. Thanks to everyone who showed up. -
Memory leaks with Infragistics NetAdvantage Windows Forms edition
When I finalized my article about memory leaks, I removed a part about Infragistics NetAdvantage. Here it is. It may be useful to some of you. Warning: It's based on NetAdvantage 7.3, and may or may not apply to recent versions.
-
New article: How to detect and avoid memory and resources leaks in .NET applications
My new article, which I've been preparing over the last few months, is now available. It's about memory and resources leaks in .NET.
You'll find it in English on MSDN and in French on my site. It's also available in PDF in English and in French. -
XMLAuto version 2010
Ten years ago, I played with OLE Automation so we can write things such as the following, where Document represents an XML document:
-
Forcing event unsubscription
Given my own experience, I'd say that events are the main source of leaks in .NET. They deserve double- and even triple-checks. Each time you add a subscription to an event in your code, most likely with +=, you should worry about the consequences and ask yourself whether you need to add a -= somewhere to unsubscribe from the event. If you have to, do it immediately before you forget about it. Often, you'll do that in a Dispose method.
-
LINQ in Action XML samples now in LINQPad too
After we published the code samples for LINQ in Action's first chapters in LINQPad a few weeks ago, the samples of three more chapters have just been added. These chapters cover LINQ to XML. Thanks Jim for doing the additional conversion.
-
LINQ in Action samples in LINQPad
Do you know LINQPad? It's a really simple but great tool for testing LINQ queries. Not only that, but it can be used to test all kinds of C# and VB code snippets.