Type Safe Logger

Article co-authored with Sanjeev, and published on CodeProject PROBLEM Every application logs a whole bunch of diagnostic messages, primarily for (production) debugging, to the console or the standard …

Read more →

CComPtr Misconception !!!

This is about a killer bug identified by our chief software engineer in our application. What was devised for ease of use and write smart code ended up in this killer defect due to improper …

Read more →

Settling Casting Restrictions

Remember the Casting Restrictions we discussed a while back, let us settle that now. So we have some code like this: object obj = i; long l = (long)obj; And an invalid cast exception while casting …

Read more →