When a program has an error, I find (under some as yet unidentified circumstances) the highlighted line in debug mode is usually one line below the line that cause the error. Also, all the variables and arrays are listed as not in scope so as to prevent inspection of their current values at the time of the error. The next time it happens I will supply repro code...
Come to think of it, this happens to me as well, and rather often. It happens so much that I don't really think about it and just continue coding.
Can you post a couple simple examples for me to use as my test cases. Thanks
If I run accross it again, I'll be sure to post a repro example. But, that may be a while because I write such perfect code, it rarely has any bugs!