Memory usage issue in a WPF application with C ++ DLL

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.

SnugDiag report snapshot

+7
c ++ c # memory-leaks debugdiag
source share

No one has answered this question yet.

See similar questions:

108
is there a SqlConnection in the "using" block that is closed by return or exception?

or similar:

1783
C ++ 11 introduced a standardized memory model. What does it mean? And how will this affect C ++ programming?
616
How to create a single instance WPF application?
nine
Mixed mode memory leak C ++ / CLR application
3
Search for internal memory leak in a managed .NET application, DebugDiag missing stack trace
one
WPF Application Memory Consumption in TaskManage
one
Avoid memory leak in C # client unmanaged DLL with memory leak
one
Memory leak in a C ++ / C # application
one
How to find a DLL that causes a memory leak, and does not directly refer to the application
0
Troubleshoot internal memory leaks in Windows Store apps with DebugDiag and LeakTrack
-one
memory leak in .net application, debugdiag analysis does not give GC details

All Articles