Tuesday 22 March 2011

OpenCV Error Report

In Visual studio 2011

If you didn't close the all cv Windows before your application closing, you may get error.

Windows has triggered a breakpoint in BlaBla.exe.
This may be due to a corruption of the heap, which indicates a bug in BlaBla.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while BlaBla has focus.
The output window may have more diagnostic information.
and

You can find out this error message in output window
HEAP[BlaBla.exe]: HEAP: Free Heap block 17afa0 modified at 17b000 after it was freed
If you have this problem, you can solve by adding simple code.

Added code, before closing.


cvDestroyAllWindows();

Then, you cannot see the error window.

Have a good job.

No comments: