Update: New version has been released in case you're using the last version (V1.0.0.0) please use this version instead. In case you don't know what StackOverflow is all about you can read about it At the site's About Page: Stack Overflow is a programming Q & A site that's free. Free to ask questions, free … Continue reading StackOverflow Notifier
Why should I use List and not ArrayList
I came upon a questing at StackOverflow: The system I work on here was written before .net 2.0 and didn't have the benefit of generics. It was eventually updated to 2.0, but none of the code was refactored due to time constraints. There are a number of places where the code uses ArraysLists etc. that … Continue reading Why should I use List and not ArrayList
MSDN Magazine October 2008 – Features Parallelism
In case you haven't noticed yet the new issue of MSDN magazine is available online. This issue focuses on multi-threading and parallel programming and has very interesting articles on that topic. The content is great - especially for developers that are interested in learning how to make the switch from sequential to parallel (multi threaded) … Continue reading MSDN Magazine October 2008 – Features Parallelism
Why Atomic operations are not always thread safe
A question I saw on StackOverflow: Is accessing a bool field atomic in C#? In particular, do I need to put a lock around:class Foo{private bool _bar;//... in some function on any thread (or many threads)_bar = true;//... same for a readif (_bar) { ... }}This question was answered quickly by several users that quoted … Continue reading Why Atomic operations are not always thread safe
Three Fixes that helped me when windows failed to Install an update
I think that it happen to me at least once in each computer I own or worked on: While running Windows (or Microsoft) update I get an error claiming that the update could not be installed. This used to be a source of frustration for me. I needed to Google around and try solutions and … Continue reading Three Fixes that helped me when windows failed to Install an update
SharpPDB – .NET Class that reads and writes palm OS files
I'm the proud owner of a Palm Tungsten E2 device. It's amazing how this old device is still much better then newer mobile windows devices. It has great battery life, quick response time and easy to use PIM. And it seems I'm not only one that thinks so - you can read about it download … Continue reading SharpPDB – .NET Class that reads and writes palm OS files
Using Managed Thread Local Storage
At work we needed to keep information about each thread. Due to application's nature we couldn't know when a thread would call our code and to make things more interesting we couldn't even rely on the thread id for unique identification. Because of those restrains an external data structure was out of the question and … Continue reading Using Managed Thread Local Storage
The Problem With Design Patterns
The first time I've learnt about OOP Design Patterns was at a Software Engineering introductory course. Since then I had a growing feeling that there is something wrong in the way that the industry treats them. Don't get me wrong - those patterns exist so that developers wouldn't need to reinvent the wheel each time … Continue reading The Problem With Design Patterns
Coding Spell Book
Professor Henry Jones: Well, he who finds the Grail must face the final challenge. Indiana Jones: What final challenge? Professor Henry Jones: Three devices of such lethal cunning. Indiana Jones: Booby traps? Professor Henry Jones: Oh yes. But I found the clues that will safely take us through, in the Chronicles of St. Anselm. Indiana … Continue reading Coding Spell Book
How to find assembly path ,name and version at runtime
Ever needed to find the location of your executable in runtime? what about getting a certain dll name? Look no further - the following is a quick overview on the .NET objects and functions that can solve your problem. Application.ExecutablePath System.Windows.Forms.Application has static methods and properties that help manage an application, as well as … Continue reading How to find assembly path ,name and version at runtime