VC++ F5 and Ctrl+F5, I'm mad...

Started by
20 comments, last by Hodgman 11 years, 7 months ago

I normally use valgrind to check for things like this. It walks through your program and gives dynamic warnings on uninitialized variables and also memory leaks

Vagrind would have been an option, but he stated he's using the Visual Studio and afaik valgrind does unfortunately not work in windows.

However, I just remembered that starting with VS2012 the static code analysis is included in all versions starting with professional (it used to be limited to higher versions before). That should have caught it as well. Additionally, they finally made the profiler and the concurrency visualizer available for VS professional as well.
Advertisement
Good static analysys tools should be good for this -- there's an article on the site that talks about catching buggy memset calls that were supposed to initialize allocations but didn't.

This topic is closed to new replies.

Advertisement