{"id":28621,"date":"2014-07-02T16:07:55","date_gmt":"2014-07-02T07:07:55","guid":{"rendered":"http:\/\/ur.edu-connect.net\/?p=28621"},"modified":"2024-02-03T23:19:35","modified_gmt":"2024-02-03T14:19:35","slug":"opencvvs2012%e4%b8%8a%e3%81%a7stdvector%e3%81%8cassertion-error%e3%82%92%e8%b5%b7%e3%81%93%e3%81%99","status":"publish","type":"post","link":"https:\/\/ur.edu-connect.net\/archives\/28621","title":{"rendered":"OpenCV+VS2012\u4e0a\u3067std::vector\u304cassertion error\u3092\u8d77\u3053\u3059"},"content":{"rendered":"\n
\"logo\"<\/a><\/figure>\n\n\n\n

\u4ee5\u524dVS2010\u3067\u4f5c\u6210\u3057\u305fC++\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3057\u3066\u307f\u305f\u3089std::vector\u306e\u5024\u306e\u64cd\u4f5c\u3092\u304a\u3053\u306a\u3046\u3042\u305f\u308a\u3067 Debug Assertion Failed: _CrtIsValidHeapPointer(pUserData) \u3092\u5410\u3044\u3066\u6b62\u307e\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e\u74b0\u5883\u306fWindows7\uff0cOpenCV2.4.9\uff0cVisual Studio 2012\uff0e\u4ee5\u524d\u306f\u52d5\u3044\u3066\u3044\u305f\u306f\u305a\u30fb\u30fb\u30fb\u3068\u3044\u308d\u3044\u308d\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u63db\u3048\u3066\u8a66\u3057\u3066\u307f\u3066\u3082\uff0c\u5168\u304f\u6539\u5584\u3055\u308c\u305a\u9014\u65b9\u306b\u66ae\u308c\u3066\u3044\u305f\u3068\u3053\u308d\uff0c\u4e0b\u8a18\u306e\u60c5\u5831\u3092\u898b\u3064\u3051\u307e\u3057\u305f\uff0e<\/p>\n\n\n\n

OpenCV incompatable with std::vector? (_crtIsValidHeapPointer error)<\/a><\/p>\n\n\n\n

\u3069\u3046\u3084\u3089Windows\u7528\u306eOpenCV\u306fVS2010\uff08Version 10\uff09\u3067\u30d3\u30eb\u30c9\u3055\u308c\u3066\u304a\u308a\uff0cVS2012\u3067\u4f5c\u3063\u305f\u30b3\u30fc\u30c9\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fVS2012\u7528\u306eCRT\uff08Version 11\uff09\u306b\u30ea\u30f3\u30af\u3055\u308c\u308b\u305f\u3081\uff0c\u4e0d\u6574\u5408\u304c\u8d77\u3053\u3063\u3066\u30a8\u30e9\u30fc\u3092\u5410\u304f\u3068\u3044\u3046\u3053\u3068\u306e\u3088\u3046\u3067\u3059\uff0e\u89e3\u6c7a\u65b9\u6cd5\u3068\u3057\u3066\u306f\uff0c\u4e0a\u8a18\u30da\u30fc\u30b8\u306b\u3042\u308b\u3088\u3046\u306b\uff0c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\uff0c\u300c\u69cb\u6210\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u2192\u300c\u5168\u822c\u300d\u2192\u300c\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0 \u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u300d\u3067Visual Studio 2010(v100)\u3092\u9078\u629e\u3059\u308c\u3070\u826f\u3044\u3067\u3059\uff0e\u5b9f\u969b\uff0c\u79c1\u306e\u30b3\u30fc\u30c9\u3082\u554f\u984c\u306a\u304f\u52d5\u304d\u307e\u3057\u305f\uff0e<\/p>\n\n\n\n

\uff08\u6ce8\uff1a\u4e0a\u8a18\u3060\u3051\u3092\u5909\u66f4\u3059\u308b\u3068\u4eca\u5ea6\u306fOpenCV\u306ebin\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306a\u3069\u3068\u306e\u4e0d\u6574\u5408\u304c\u8d77\u3053\u308b\u306e\u3067\uff0c\u30b7\u30b9\u30c6\u30e0\u74b0\u5883\u5909\u6570\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\u3078\u306e\u30ea\u30f3\u30af\u3082\u5168\u3066vc10\u306b\u7d71\u4e00\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3067\u3059\u306d\uff0e\u7d50\u5c40\uff0cVS2012\u306e\u4e0a\u3067VS2010\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u72b6\u614b\u306b\u306a\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff09<\/p>\n\n\n\n

\u3053\u3046\u3044\u3046\u306e\u306f\u672c\u8077\u306e\u65b9\u306b\u306f\u5e38\u8b58\u306a\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3067\u3059\u304c\uff0c\u79c1\u306e\u3088\u3046\u306a\uff0c\u5fc5\u8981\u306a\u6642\u306b\u3057\u304b\u89e6\u3089\u306a\u3044\u4eba\u9593\u306b\u306f\u306a\u304b\u306a\u304b\u6c17\u3065\u3051\u306a\u3044\u3067\u3059\u306d\u30fb\u30fb\u30fb<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4ee5\u524dVS2010\u3067\u4f5c\u6210\u3057\u305fC++\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3057\u3066\u307f\u305f\u3089std::vector\u306e\u5024\u306e\u64cd\u4f5c\u3092\u304a\u3053\u306a\u3046\u3042\u305f\u308a\u3067 Debug Assertion Failed: _CrtIsValidHeapPointer(pUserData) \u3092\u5410\u3044\u3066\u6b62\u307e\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e\u74b0\u5883\u306fWindows7\uff0cOpenCV2.4.9\uff0cVisual Studio 2012\uff0e\u4ee5\u524d\u306f\u52d5\u3044\u3066\u3044\u305f\u306f\u305a\u30fb\u30fb\u30fb\u3068\u3044\u308d\u3044\u308d\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u63db\u3048\u3066\u8a66\u3057\u3066\u307f\u3066\u3082\uff0c\u5168\u304f\u6539\u5584\u3055\u308c\u305a\u9014\u65b9\u306b\u66ae\u308c\u3066\u3044 […]<\/p>\n","protected":false},"author":1,"featured_media":28622,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[90],"tags":[24,139],"class_list":["post-28621","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-res","tag-opencv","tag-vs2012"],"_links":{"self":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts\/28621"}],"collection":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/comments?post=28621"}],"version-history":[{"count":9,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts\/28621\/revisions"}],"predecessor-version":[{"id":29704,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/posts\/28621\/revisions\/29704"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/media\/28622"}],"wp:attachment":[{"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/media?parent=28621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/categories?post=28621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ur.edu-connect.net\/wp-json\/wp\/v2\/tags?post=28621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}