Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

using openCV with MFC (windows)

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

click to hide/show revision 2
retagged

updated 2017-04-16 03:45:07 -0600

berak gravatar image

using openCV with MFC (windows)

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

click to hide/show revision 3
retagged

updated 2017-04-16 03:45:08 -0600

berak gravatar image

using openCV with MFC (windows)

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

click to hide/show revision 4
retagged

updated 2017-04-16 03:45:09 -0600

berak gravatar image

using openCV with MFC (windows)

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

click to hide/show revision 5
retagged

updated 2017-04-16 03:45:10 -0600

berak gravatar image

using openCV with MFC (windows)

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

using openCV with MFC (windows)

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. 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

using openCV with MFC (windows)

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. success.

(I also 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

using openCV with MFC (windows)

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 also run ran 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