Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Expert F#

What's a better book to read when learning F#?

Essential WPF

Thus far the best book I've read on WPF. Gets right down to working with WPF and the goals/history.

Purely Functional Data Structures

Reading this book makes me feel like I'm back in college. It will really get your mind going and is best read with a whiteboard handy.

Blog Roll

Eric Lippert
Dustin Campbell
Jon Skeet
Coding Horror
Brian McNamara
Brian Bondy
Hub FS
Full List

Browse by Tags

All Tags » C++ » Gotcha   (RSS)
Type safety issue when assigning CComPtr<T> instances
Recently while making a bug fix to our selection tracking code I discovered an unexpected behavior with CComPtr<T> instances.  The crux of the fix included creating a new tracking mechanism exposed via COM in the type ISelectionTracking.  Read More...

Posted Wednesday, November 04, 2009 8:00 AM by Jared Parsons | 1 Comments

Filed under: ,

Redefining Success
Spent about an hour debugging a bit of code today.  I was attempting to read data from a particular source and kept getting back failure codes.  After some debugging I discovered the data didn't actually exist in the source I was reading from.  Read More...

Posted Friday, October 24, 2008 8:00 AM by Jared Parsons | 1 Comments

Filed under: ,

Bit by void*
Recently I got bit by void* again because of another C++ quirk I didn't think through.  I had a class which wrapped a void* which could be one of many different structs.  The structs were POD and didn't have any shared functionality hence I Read More...

Posted Monday, June 16, 2008 8:00 AM by Jared Parsons | 6 Comments

Filed under: ,

Gotcha: CComAutoCriticalSection and copy constructors
While investigating a crash during a suite run I found the stack walk included the destructor for a CComAutoCriticalSection . This is a fairly reliable class so I immediately suspected my code. I did a couple of quick checks for a double free and didn't Read More...

Posted Thursday, April 24, 2008 8:00 AM by Jared Parsons | 0 Comments

Filed under: ,

Gotcha: CComPtrBase<T> assignment
Today what started out as a crash due to a pure virtual call turned into finding a gotcha in CComPtrBase<T>. Essentially the code in question boiled down to the following. Can you spot the problem? void GetAStudent(CComPtrBase<T> &spStudent) Read More...

Posted Tuesday, April 08, 2008 11:44 AM by Jared Parsons | 2 Comments

Filed under: , ,

Page view tracker