Reputation: 51
I am trying to use cppcheck plugin with visual studio 2017. However when I select tools/Check current project with cppcheck, it always says "Object reference not set to an instance of an object." Any suggestions?
I am using
Thanks.
Upvotes: 5
Views: 885
Reputation: 39
For me, the problem was resolved after I edited the projects and checked "Enable Code Analysis on Build". I was then able to uncheck this option, but it leaves
<RunCodeAnalysis>false</RunCodeAnalysis>
in the vcxproj file, which seems to resolve the problem.
Upvotes: 3