Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt programname.exe exited with code -1073741819 How can I fix this?

Tags:

opencv

qt4

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?

like image 829
Rick2047 Avatar asked May 23 '09 12:05

Rick2047


1 Answers

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.

like image 91
Goz Avatar answered Oct 19 '22 20:10

Goz