That had to be a big "Oh $h|t!" moment!!
I've written code I just COULD not debug before.
I finally threw away what I was working on and rewrote it, this time it worked right.
Eyeballing the old VS the new I could NOT see the difference - they looked the same!
I used a COMPARE function on both sources and the computer found what I could not, a comma where a Dp should be.
test, Test, TEST!!
All software has bugs. All software can be simplified.
Therefore all software in the world can be reduced to one line that does not work!
A good IDE like Eclipse or Visual Studio should help with things like that, but I know what you mean. Just last week I had a function that was incorrectly calculating a score for a survey. I wasted 4 hours trying to figure out why. Finally one of my new hires, a fresh-out-of-college fella, wanders by and I ask him to look at it, fresh eyes.
He leans over and says, "Right there, you used the wrong variable!
Some days . . . :-)