Sometimes, in C++ projects, Visual Studio IntelliSense stops working with apparently no reasons. There are many official and non official guides on how to troubleshoot it and they almost always say that, given some conditions are respected, if IntelliSense doesn’t work, it is suggested to delete its database to let Visual Studio rebuilds it. To be able to do it, it is necessary to close the current solution, otherwise windows wouldn’t allow the access to the .ncb file.
However this procedure apparently doesn’t work for me. I have found that I also need to close the IDE and do something else. Here it follows the – at least for me – working sequence:
- clean the solution
- close the solution
- close Visual Studio
- delete the .ncb file
- open Visual Studio
- load the solution and clean it again
- rebuild the solution
What I find particularly annoying is that after a while the buggy IntelliSense goes crazy again and I have to stop working and repeat the whole sequence again. That’s a notable waste of time!
I have reproduces this problem on some computers, with VS 2005 and 2008, and with XP and Vista, but only with unmanaged C++. I haven’t tried managed C++, while a colleague of mine says it doesn’t happen with C#.
Comments or – possibly useful
– suggestions?
More From kr1zz
- In ricordo di Delicq
- VC++ directories (include, libraries…) in Visual Studio 2010
- In bicicletta a Genova
kr1zz Recommends
- Green Energy Investments Announced in Dubai (GreenEnergy)
- Nanotechnology Now On Solar Energy (GreenEnergy)


Alba
11 gennaio 2012 at 12:21
it does not work for me…
kr1zz
11 gennaio 2012 at 15:00
I am sorry. Actually I’m forming opinion that Visual Studio is getting non-deterministic
Anyway, in case you discovered more, if you let me know, I would greatly appreciate your contribution.