草庐IT

pFirstBlock

全部标签

c++ - 调试断言失败表达式 : _pFirstBlock == pHead using OpenCV and C++ trying to call SurfFeatureDetector

我在使用OpenCV的C++中有这个函数:vectortest(Matimg){intminHessian=400;SurfFeatureDetectordetector(minHessian);vectorvKeypoints;detector.detect(img,vKeypoints);returnvKeypoints;}当我在主方法中调用此函数时,一切正常。intmain(int,char**argv){//pathtoaimage-filechar*input="image.jpg";//readimageintoMatimgMatimg=imread(input,CV_LO

c++ - 调试断言失败!表达式 : _pFirstBlock == pHead

我正在调用一个静态链接的.dll,我看到了这个错误:我编写了.dll和调用代码。不应发生此错误。我想知道是否有人以前遇到过它?.dll仅包含大约10行代码,它只是一个测试.dll,以了解dll的一般工作方式。当我将std::string从.dll中传回时,它会爆炸。我正在使用VisualStudio2012和C++。接下来我会尝试什么来自Debugassertion..._pFirstBlock==pHead:Thisproblemcanoccurifoneusesthesingle-threadinglibrariesinamultithreadedmodule.明天,我将尝试在多线