tags:

views:

3820

answers:

3

Hi,

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 in the function:

 putImage(IplImage* cvimage)

It is giving exit error code: 1073741819, wherever following..:

 cvimage->depth

.. is being used.

I have solved this problem long ago but now I can not crack it.

Please help.

-Rahul

+3  A: 

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.

Goz
Shouldn't this create an event log message though?In all of the cases of this that I have seen it's like the application was turned off by a user without it actually throwing an exception to windows for it to handle...
uzbones
Hmmm stack overflow perhaps?
Goz
A: 

My app exit with this code but AFTER I click at X in window!

Everythong else works fine. (3 buttons and one myself made widget)

Any idea ?

przemo_li
A: 

then maybe you don't return any value from your main function? It looks like "uninitialized value" for me

Kamil Klimek