-
intruder > thats pretty bad. As far as I know, I don't talk in my sleep, though I have room all to myself so theres no one to tell me if I do talk. I can only imagine the kinds of dreams some of the people here on AO have, esp some of the people who are hardcore programmers.
-
Yeah, happend to me once also..
Had been debuging an assignment (a game in C++ with DirectX) for 3 days: collision detection wasn't working...
I finally found out the bug the next morning: a ";" at the end of the line of a "for" statement..
(something like: "
for( int i=x; i<ARRAY_SIZE; i++);
{
//navigate array of pointers to polymorphic objects!
}"
so the loop ran "empty" and "i" was one to high when executing the code block!
The worst was that it was so subtle:
VC++ compiler doesn't protest (warn) of "empty" for statements
tracing an executing directx prog is hell
the prog didn't crash because the invalid array subscript just returned a pointer with invalid value which was supposed to point to a polymorphic object (refered to a superclass) in which I only used an int, which was just wrong...
Anyways..
Ammo
-
You actually had a dream of the next MICROSOFT WINDOWS OS, and if only you could remember, you might become a multi-millionaire.