Bad COM practices: Returning an AddRef’d pointer

Recently I had to fix a memory leak in some COM code that was pretty poorly written. The problematic code looked something like this:  IMyInterface* GetInterface() { IMyInterface* pRef = NULL; pRef = ::CoCreateInstance(…); // At this point, pRet has a reference count of 1. return( pRef ); } void UseInterface() { CComPtr<IMyInterface> sp; sp…

2

Why customer service is the most important aspect of business

For those that know me personally, you’ll know that my brother loves motorcycles, and that recently we have purchased 3 motorcycles within the last 8 months. Our experience through this time has definitely confirmed to us why customer service and interaction is the most important aspect of business. When my brother first moved to Seattle…

1