Everything is undefined but code can run

asked 2016-04-03 02:50:05 -0600

Nbb gravatar image

Hello,

I suddenly have a lot of things underlined in red in my code. And when i mouse over it says things like Mat is undefined or error: name must be a namespace name. But my program can run. Im not sure what I did. How do i fix this ?

edit retag flag offensive close merge delete

Comments

1

please have a look at the faq , and try to improve your question.

berak gravatar imageberak ( 2016-04-03 02:59:15 -0600 )edit
2

You probably did... nothing. I guess you've just discovered the wonderful world of Visual Studio. I run into this "problem" several times a week. The reason is Intellisense failing to do its job, and therefore red lines appear. However, those aren't real errors, and that's why your code perfectly runs. How to solve? Restarting Visual Studio often does the trick. Sometimes simply re-building the solution works too.

LorenaGdL gravatar imageLorenaGdL ( 2016-04-03 16:56:30 -0600 )edit