Hi
I wrote some code the other day which behaved in a very perculiar fashion.
The compiler was telling me that I hadn't declared a variable, which in fact that I had declared. I am absolutely certain of this.
My question is this - is it possible for some one to write some code ( perhaps using a language other than c ) that somehow corrupts the workings of the compiler and gets it to misreport any errors ( or correct statements as errors ). I do suspect some sort of foul play. I have seen this happen a number of times now.
regards,
Kareem
A) not really B) can you show us the code and the exact error message I suspect you have just made a error and how to fix it is not immediately obvious to you. Posted via CodeCall Mobile
I am often certain of several things when I code only to find I am wrong. Can you post your code that had an undeclared variable?
Posted via CodeCall Mobile
Don't take it the wrong way, but 12 out of 10 times the compiler is right and you are wrong lol.
Maybe the compiler is saying you haven't initialized the variable (initializing inside an if statement or loop does not count). I've had that error give me headaches. Try setting it to null when you declare it.
Visual C# Kicks - Everything C#.NET programming related
Well we won't know until you post the code lol. It is that simple![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks