I have been using both OpenCV and SystemC for several applications with great satisfaction.
Now, I have this application where I need to display images with OpenCV in a SystemC simulation environment. For some reason however, both packages seem to be incompatible "at runtime":
- There is no problem when I call
cvNamedWindow
orcvShowImage
in a SystemC class beforesc_start()
was called. - However, when
cvNamedWindow
orcvShowImage
is called in asc_thread
, the execution of the program is aborted:Thread 1: EXC_BAD_ACCESS(code=2, address=0x7c91ad70).
There is no problem with querying frames (cvQueryFrame
), only window-related functions seem to cause problems. If someone has an idea what could cause this problem and if there is a solution or a work-around for this issue, that would be great.
P.S. I'm using Xcode, but I suppose that the problem is not related to the coding environment.