Geeks With Blogs
Timo Heinäpurola November 2011 Entries
Data breakpoints to find points where data gets broken
When working with a large code base, finding reasons for bizarre bugs can often be like finding a needle in a hay stack. Finding out why an object gets corrupted without no apparent reason can be quite daunting, especially when it seems to happen randomly and totally out of context. Scenario Take the following scenario as an example. You have defined the a class that contains an array of characters that is 256 characters long. You now implement a method for filling this buffer with a string passed ......

Posted On Saturday, November 12, 2011 10:26 AM

Take your alignment seriously
Just recently I bumped into a very nasty bug that I had been unfortunate enough to conjure. Alignment of memory has never been my primary concern when working on the PC. As a typical C++ programmer you often don’t have to think about such things. On the PC this is usually “almost never” (when not optimizing, that is) and in a managed environment this truly should become “never”. On ARM, however, “never” becomes “almost never” again. Having your memory aligned means storing values of different sizes ......

Posted On Friday, November 4, 2011 7:20 PM

Copyright © raccoon_tim | Powered by: