如何解决SGVector超出范围时,Shogun工具箱错误释放了内存
我在Windows 10 x64,VisualStudio 2019上构建了Shogun toolbox ML master。
我运行classifier_minimal_svm示例;可以,但是每次SGVector
超出范围时都会出现此错误
{
SGVector<float64_t> y_values(100);
}
存在此错误:
Critical error detected c0000374
classifier_minimal_svm.exe has triggered a breakpoint.
Exception thrown at 0x00007FFC395DB0B9 (ntdll.dll) in classifier_minimal_svm.exe: 0xC0000374: A heap has been corrupted
(parameters: 0x00007FFC396427F0).
Unhandled exception at 0x00007FFC395DB0B9 (ntdll.dll) in classifier_minimal_svm.exe: 0xC0000374: A heap has been corrupted (parameters: 0x00007FFC396427F0).
classifier_minimal_svm.exe!shogun::sg_free(void * ptr) Line 186 C++
classifier_minimal_svm.exe!shogun::sg_generic_free<double,0>(double * ptr) Line 124 C++
classifier_minimal_svm.exe!shogun::SGVector<double>::free_data() Line 405 C++
classifier_minimal_svm.exe!shogun::SGReferencedData::unref() Line 102 C++
classifier_minimal_svm.exe!shogun::SGVector<double>::~SGVector<double>() Line 173 C++
#include <shogun/lib/SGVector.h>
int main(int argc,char** argv)
{
shogun::SGVector<float64_t> y_values1(100);
return 0;
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。