I have a C ++ dll that reads a specific file format. If I use this DLL using the WPF application, it consumes 1 GB of memory, but if I use the same DLL using the MFC application, it uses 200 MB of data.
My initial hunch is that it takes up some memory with dynamic memory allocation, although I'm not sure. I know that itβs hard to guess a possible criminal without a code. All I want is any checks that I can do to make sure that I donβt have any settings that I should use, or any suggestions that might help.
And yes, I tried a different profile, none of them detect memory leaks.
UPDATE: with procdump, I will learn more information about memory consumption. Below is a snapshot of the output of the DebugDiag analysis report. It shows the virtual memory consumption of 2.23 GB for a WPF application with C ++ dll, and for an MFC application with C ++ dll - 60 MB.

Rahul galgali
source share