Lu J.
Lu J.

Reputation: 51

cppcheck plugin issue with visual studio 2017 "Object reference not set to an instance of an object."

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

Answers (1)

Don Inghram
Don Inghram

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

Related Questions