From: gtsml o. <gts...@go...> - 2009-10-06 15:41:13
|
Hi, I'm using vnl_conjugate_gradient with VC8 (visual studio 2005) and occasionally I see this error in debug mode: Run-Time Check Failure #2 - Stack around the variable 'z__' was corrupted. This is happening while leaving the function cg_ in the file cg.c This function is literally packed with "goto" btw, could that be the culprit?? Any idea? 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) Line 1128 + 0xf bytes C > vision.dll!vnl_conjugate_gradient::minimize(vnl_vector<double> & x={...}) Line 171 + 0x50 bytes C++ PPS: FYI, here is a similar question asked in this forum 3 month ago (no answer): Hi, I am currently using Visual Studio 2005 and release 29930 of ffmpeg (which is complied by http://ffmpeg.arrozcru.org/builds/). I get VXL to compile but run into a problem while testing vdl_convert. The test runs to the end and is successful throughout, but ends with this error message: Run-Time Check Failure #2 - Stack around the variable 'buffer2' was corrupted. Is this anything for concern? I tried looking through the archive (btw, is there anyway to search?) but couldn't find anything. Thanks in advance! |