使用VXL library:
我正在使用vnl_conjugate_gradient和VC8(visual studio 2005)和
偶尔我会在调试模式下看到这个错误:
运行时检查失败#2 - 变量'z__'周围的堆栈已损坏。
将函数cg_保留在文件cg.c
中时会发生这种情况
这个函数字面上包含“goto”btw,可能是罪魁祸首吗?
有什么想法吗?
PS:Callstack:
- vision.dll!v3p_netlib_cg_(double * x = 0x01d6b040,double *
e = 0x0012f1d4,long * it = 0x0012f1c8,double * step = 0x01d698b8,double *
t = 0x0012f1b8,long * limit = 0x01d69868,long * n = 0x0012f19c,long *
m = 0x0012f19c,double(double *,void ) value = 0x00f2a9e0,void
(double *,double *,void ) grad = 0x00f2aae0,void(double *,double
*,double *,void ) both = 0x00f2abf0,void(double *,double *,void
) pre = 0x00f2ad00,double * h __ = 0x01d6b080,void *
userdata = 0x01d69858,long * error_code = 0x0012f190)第1128行+ 0xf
bytes C
- vision.dll!vnl_conjugate_gradient :: minimize(vnl_vector& x = {...})第171行+ 0x50字节C ++