简体   繁体   中英

OpenCV 2.4.8 and VS2013 Crash on DrawContours

I have been pretty frustrated since I installed vs2013. My code on vs 2010 all worked well for more than a year and a few days ago I had to upgrade to vs2013. Since the first run I keep getting into a crash at the point where i drawContours() . It is seems that the code is trying to access outside the bounds/list/collection of contour points. The same code runs absolutely fine with VS2010. Could this be a vs2013(VC++) bug?

Turned out to be true when I sensed to build opencv myself. I had to build all of opencv in VS2013, And then had to make PATH variable to point to the bin directory of the newly built files and then had also place the folder locations for the newly built .lib files in VS. All working fine now.

But the other half turned out that VS2013 did not save my the changes I made to lib files eg I renamed some files from *245d.lib to *248d.lib but VS did not save them. That was pretty strange.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM