Ask Your Question

IngDante's profile - activity

2013-10-04 09:59:33 -0600 commented question Very simple application crashing on close

Thank you very much. I always develop on Linux, this is my very first time on Windows... Anyway, it looks like I may be luckier with a DLL (someone says this problem does not occur in that case), which is exactly what I would need in the end...I'll give it a try in the next few days :)

2013-10-03 10:26:16 -0600 commented question Very simple application crashing on close

Hi Thomas! Yes, the code is pretty much the same, I have just hard-coded a string rather than using a command line argument as the path to a JPEG image. The strange thing is that in "debug mode" (i.e. compiling using the libraries with the "-d" suffix), everything works as expected. The only information I can get from Visual Studio is that the heap is somehow "damaged":

> HEAP[myNewOpenCv.exe]: Invalid address specified to RtlFreeHeap( 003C0000, 0044D178 )

This error occurs on close, no matter whether I call destroyAllWindows() or not. You can download my VS2008 project here: http://tinyurl.com/ogbhnja (it's a zip on Dropbox); I guess there could be something wrong in my project settings (compiler/linker)...thanks!

2013-10-03 07:43:18 -0600 received badge  Editor (source)
2013-10-03 04:13:08 -0600 asked a question Very simple application crashing on close

Hi guys,

this is my very first post here, sorry if I do something wrong :)

I am definitely a newbie so I am probably making a very stupid mistake... I need to find the center of a circle in a still image, and I found this code which works as expected: http://docs.opencv.org/doc/tutorials/imgproc/imgtrans/hough_circle/hough_circle.html#code

But for some reason, the program crashes when it exits (everything is fine until the "return 0;" instruction). I realized that it crashes only if at least one circle has been detected, otherwise it closes without errors. I guess something goes wrong with memory but I don't know exactly how to find out where the problem is. It looks like a bad segmentation fault...

I'm working on a Windows7 64bit machine, with OpenCV 2.4.6 and Visual Studio 2008 (I am creating a win32 application).

Do you have any idea about how I could spot the cause of this?

Thanks for your help ;)