Browse by Tags

Cleaning up after yourself (Dispose(void) doesn't get called for you)
Despite my large and growing number of Dispose-related blogs, I really don't like writing about Dispose. Or rather, I don't like that Dispose is in such a confusing state that it requires so much reading material. :) But here we are again. I'd like to Read More...
Posted 17 November 08 10:06 by kimhamil | 1 Comments   
Filed under ,
Making a StreamWriter usable even after given garbage characters
I recently got a question from a customer using a StreamWriter with a UTF-8 encoding. The StreamWriter threw an EncoderFallbackException on an attempt to write “garbage” Unicode characters. For example, on an attempt to write U+DFC9, which is only half Read More...
Posted 11 November 08 03:10 by kimhamil | 2 Comments   
Filed under
FileSystemWatcher doesn't fire events for monitored network drive after changing InternalBufferSize
Problem and .NET Fix Some customers have observed that a FileSystemWatcher monitoring a network drive fails to fire events after setting InternalBufferSize to certain values. The problem is that the value provided to InternalBufferSize is invalid and Read More...
Posted 27 April 08 04:07 by kimhamil | 3 Comments   
Filed under
The never-ending saga of Close/Dispose
I made some quick updates in my recent post to describe the difference between Close and Dispose for SqlConnection: http://blogs.msdn.com/kimhamil/archive/2008/03/15/the-often-non-difference-between-close-and-dispose.aspx If you're wondering about the Read More...
Posted 17 March 08 11:23 by kimhamil | 2 Comments   
Filed under ,
The (often non-) difference between Close and Dispose
Some classes in the .NET framework, such as System.IO.FileStream, have both a Close() and Dispose() method. The natural question is what's the difference, and when you should use one versus the other. The framework guidelines refer to Close and Dispose Read More...
Posted 15 March 08 06:43 by kimhamil | 5 Comments   
Filed under ,
What's been happening with Long Paths?
It appears that part 3 of the long path blog series on the BCL blog is now nearly a year overdue! This sounds hard to believe, but BCL really has been that busy . On the bright side, we've been working on exciting projects, such as Silverlight , and now Read More...
Posted 08 March 08 05:46 by kimhamil | 1 Comments   
Filed under ,

Search

This Blog

Syndication

Page view tracker