I'm using Ipp and OpenCV in a same program and foudn a very strange behavior while using cvNamedWindow and ippiMalloc. Here is a very easy example code (just replace "Picture" by another folder name) that always bug after the fourth iteration.
Sorry if I've been not clear. The previous code is separated into two parts.
The first part uses OpenCV to display iteratively the same image.
The second part uses IPP to set to zero a Ipp32f image.
Running these two part separately works well, but when you put it one below other (as I've done in the previous code), you get an error (it seems to be a conflicting memory superposition). The strange behavior is that it comes always after 4 iterations. I suppose I've done a mistake somewhere, but my memory allocation seems at first sight good... I really apologize if the error comes again for mine!
Hm, what kind of error you talk about? Do you mean printf operator does not show expected values or there is access violation or what?
BTW, instead of raw loop for initialization of image data (where it is easy to make address arithmetic mistakes) you may want to try ippiSet_32f_C1R function, so your loop might be rewritten like piece of code below