Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 ;)

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. 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 ;)