I am trying to integrate Qt with OpenCV.
Here is the example: http www opendesktop org/content/show.php/Qt+Opencv+webcam+viewer?content=89995
But the function:
putImage(IplImage* cvimage)
is giving exit error code: 1073741819, wherever following..:
cvimage->depth
.. is being used.
How can I prevent this error occurring?
The error number you quote in hex is 0xC0000005 which indicates an access violation in windows. An access violation means your process has tried to access memory (ie dereference a pointer) that does not belong to it. Most likely cvimage is not a valid pointer and hence dereferencing of that pointer causes your error.
Edit: A Stack overflow will cause the application to exit suddenly.
See this article for an explanation of how to write an exception handler that will tell you what the crash was.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With