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 »
Posted in Code | No Comments »
October 18th, 2006
…you should check out ACCUs Book Reviews. That way you can avoid buying some of the books I bought…
Posted in Code | No Comments »
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 »
Posted in Code | No Comments »
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 »
Posted in Code | No Comments »
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 »
Posted in Code | No Comments »