Hello, I recently linked openCV to my MFC project which ran before without any memory leaks, when I added something as simple as void function { Mat image; } visual studio detects a lot of memory leaks, which seems false positives . this problem was fixed by delay loading the opencv_world320d.dll in the linker, but if I try to do something with the images like reading into it or using canny's edge detector the memory leaks reappear. I also tried to statically load MFC library with no success. (I run the same function on a new project without the MFC, and it works without leaks)
any suggestions on how to fix it? would really appreciate your help!
Thanks