in·con·sis·tent II

January 18th, 2007

Again the Visual Studio C++ Debugger has proven to be a bit inconsistent and this time it’s with function addresses. Read the rest of this entry »

Before you buy a book…

October 18th, 2006

…you should check out ACCUs Book Reviews. That way you can avoid buying some of the books I bought…

Redirecting cout to a callback function

September 5th, 2006

One time or another during a lifetime it’s necessary to redirect cout or another stream to a callback function… Read the rest of this entry »

The undisputed magic of shared_ptr.

July 10th, 2006

Lately there has been alot of talks about TR1 (Technical Report 1) and its adoption of Boosts shared_ptr. Now, I must admit that I like to control the lifetime of my objects myself thus I haven’t used it extensively, but I can see the benefits of writing sloppy code and being saved by the smart pointer. There is still one magic aspect of the shared_ptr that I don’t like, namely its ability to choose the correct destructor even when the base class’ destructor is non-virtual.

Read the rest of this entry »

in·con·sis·tent

May 31st, 2006

I was debugging this small application (not the listed one, that’s just an oversimplified example - mine was quite bigger) when found something horrific. Visual C++ 2005 was messing up big time, both misreading my code and calling the wrong set of functions - or so I thought. The truth was just a matter of inconsistency.

Read the rest of this entry »

Powered by WordPress. Entries (RSS) and Comments (RSS).