Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7163109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:50:49+00:00 2026-05-28T13:50:49+00:00

My WPF .net application seems to leak memory (I also use native and 3rd

  • 0

My WPF .net application seems to leak memory (I also use native and 3rd party components). I took some memory dumps and analyzed those with DebugDiag, WinDBG and VMMap. I’ve seen that the managed heap as well as native heaps and threads are quite stable (on a low level). Then I did an analysis with DebugDiag. It shows that by far the most part is allocated by “Virtual Allocation” (2.5GB: 1.2GB commited and 1.2GB reserved).

VMMap shows me the most of my memory is either “Private Data” or in one dump even “Page Table”… How can I figure out who’s responsible for that??? (I would have expected managed or native heap to grow)

Edit (let me add some additional counters):

.NET CLR Memory | # Total committed Bytes        357945K  
.NET CLR Memory | # Total reserved Bytes         402554K  
.NET CLR Memory | Large Object Heap size          79182K  
Process | Private Bytes                         1299080K  
Process | Virtual Bytes                         2876524K


-------------------- Usage SUMMARY --------------------------
    TotSize (      KB)   Pct(Tots) Pct(Busy)   Usage
   92d50000 ( 2405696) : 57.36%    83.79%    : RegionUsageIsVAD
   50c11000 ( 1323076) : 31.55%    00.00%    : RegionUsageFree
   12c6c000 (  307632) : 07.33%    10.71%    : RegionUsageImage
    79fe000 (  124920) : 02.98%    04.35%    : RegionUsageStack
          0 (       0) : 00.00%    00.00%    : RegionUsageTeb
     540000 (    5376) : 00.13%    00.19%    : RegionUsageHeap
    1ae5000 (   27540) : 00.66%    00.96%    : RegionUsagePageHeap
          0 (       0) : 00.00%    00.00%    : RegionUsagePeb
          0 (       0) : 00.00%    00.00%    : RegionUsageProcessParametrs
          0 (       0) : 00.00%    00.00%    : RegionUsageEnvironmentBlock
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:50:50+00:00Added an answer on May 28, 2026 at 1:50 pm

    A few points…

    You have both native and managed code in your app, so try to find out which half is the problem child. Run perfmon with managed and native memory counters to see where the problem is. If both the managed and native counters increase over time, then you have a potential leak. If just the native increases over time, then the native code is to blame.

    I always use these 5 counters:

    • .NET CLR Memory | # Total committed Bytes
    • .NET CLR Memory | # Total reserved Bytes
    • .NET CLR Memory | Large Object Heap size
    • Process | Private Bytes
    • Process | Virtual Bytes

    Also, take note of the Large Object Heap size as well. You can view the contents of those heap(s) in WinDbg also. Finally, while objects on the LOH will get garbage collected over time, the LOH is never compacted, so the LOH is subject to fragmentation over time, which becomes noticeable if you accidentally allocate in the LOH too often.

    EDIT: I’ve never had much luck with VMMap, instead I use perfmon and WinDbg mostly, and DebugDiag sometimes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF .NET 3.5 SP1 application that is in use on at
I'm looking to use some icons from the VS2008ImageLibrary/Actions/pngformat in my WPF application to
I have a WPF application (.NET 3.0, VS2008) that displays data in a tab
I have a desktop .NET WPF application witch uses an embedded database (SQLite). Where
We have created a beautifully designed .NET WPF desktop application. We are installing the
I'm developing a WinForms application (.Net 3.5, no WPF) where I want to be
I have a .Net 4.0 WPF application that requires an embedded database. MS Access
I am writing a .NET 3.5 WPF application in C#. This application needs to
I've recently been looking into targeting the .NET Client Profile for a WPF application
I am building a WPF Application using C# in VS 2008/.NET 3.5 SP1. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.