shaktool wrote:
I'm sorry, I don't seem to be able to reproduce the bug on my machine. I think Macs will initialize everything to zero anyway. :/ On the plus side, this probably confirms that the bug is a bad variable initialization.
If I can get the testbed to compile on my old windows computer (it doesn't have visual studio...) I'll check it out there.
If you compile it under linux and run it with http://valgrind.org/ you should pick up the uninitialized bugs out very fast.If I can get the testbed to compile on my old windows computer (it doesn't have visual studio...) I'll check it out there.
Windows does not initialize everything to 0, but there is a big chance that an uninitialized value is 0, so then you could still be hunting for a while.