Site: http://www.aaronlerch.com/blog Link: http://feeds.feedburner.com/aaronlerch
by aaron via Aaron Lerch on 12/15/2008 7:01:09 PM
I’ve talked before about System.Threading.SynchronizationContext, as well as BeginInvoke/InvokedRequired/IsHandleCreated. In a multi-threaded Windows Forms application they can easily be mis-used, introducing difficult to find bugs. One such not-so-subtle bug (application hang) is particularly nasty, and is described fairly well here. Distilled down, the application hangs, usually when the computer comes out of sleep mode, unlocks, [...] ...
[ read more ]
by aaron via Aaron Lerch on 12/15/2008 7:46:37 AM
LINQ rocks. It really does. One down-side to LINQ is that, out of the box, it’s geared towards knowing your query structure at compile-time. The values can be dynamic, of course, but it’s assumed that the structure of your query is static. For example, if you want to select a set of "Person" objects from [...] ...
by aaron via Aaron Lerch on 1/4/2008 6:06:07 PM
Visual Studio 2005 and 2008 have built-in support for refactoring code, including renaming namespaces, classes, variables, and more. Add-ins like Resharper also have support for refactoring by renaming. These tools work great, and have good integration into the Visual Studio IDE, for example being able to preview each change and exclude false positive matches. I [...] ...
by aaron via Aaron Lerch on 12/2/2007 9:13:23 PM
Did you know you can use most of the new C# 3.0 language features in VS2008 under a project that’s targeted at .NET 2.0? How cool is that? And it makes sense, too, since there’s nothing new for the 2.0 runtime, it’s all compiler magic. I found it by accident - I found Daniel Moth’s [...] ...
by aaron via Aaron Lerch on 2/25/2007 3:49:08 AM
Raymond Chen just finished a short series on LockWindowUpdate, including when to use it and when not to. I enjoy reading Raymond's blog for a number of reasons. His posts are short, to the point, and well written, and he discusses topics that I, as a .NET developer who is younger (read: showed up after most of the Win32 GUI programming days were long past) am not aware of. In this case, he had a great impact on me as in a few places I've been very much misusing LockWindowU ...
by aaron via Aaron Lerch on 12/15/2006 7:10:43 AM
Talking about Control.InvokeRequired seems like something so old, yet as I do a Google blog search for InvokeRequired I see only partial explanations and haphazard examples. I guess that's what happens in "sample code world", but the problem is that too many developers live in that world. (I know I've lived there before, and sometimes I still visit.) Just read The Daily WTF for some great examples, and before you ask--no, none of them are me. That I know of. If you don't know w ...
by noemail@noemail.org (aaron) via Aaron Lerch on 10/10/2006 6:34:00 AM
In Scott Hanselman’s recent Hanselminutes podcast with Chris Sells, he bemoaned the fact that in .NET you can’t just query the keyboard state to say “is this key pressed right now?” Chris answered that you can do it, but that he’d have to look it up to get the exact reference. I got curious and looked it up myself. It turns out you can get the currently pressed mouse buttons (as a static property on the System.Windows.Forms.Form class), but you can’t retrieve the current keyboard state. Fort ...
by noemail@noemail.org (aaron) via Aaron Lerch on 8/31/2006 4:24:00 PM
I just installed Hawkeye, and I'm pretty impressed!What is Hawkeye? From the website:"Hawkeye is the only .Net tool that allows you to view, edit, analyze and invoke (almost) any object from a .Net application. Whenever you try to debug, test, change or understand an application, Hawkeye can help."I haven't put it through any sort of paces yet, but I was blown away that I was able to attach to my .NET Outlook add-in and change properties in real-time. I think this will quickly become a valued d ...
The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.