none
mscorwks.dll has change to cause a memory leak? RRS feed

  • Question

  • Hi,

    I met a memory leak issue,

    from the Performance Monitor or WinDbg it seems the heap memory is stable, so I guess the problem comes from unmanaged heap.

    After analyze with DebugDiag, I found the main memory allocation is come from mscorwks.dll:

      Warning mscorwks.dll is responsible for 112.09 MBytes worth of outstanding allocations. The following are the top 2 memory consuming functions:

    mscorwks!EEVirtualAlloc+119: 112.00 MBytes worth of outstanding allocations.
    mscorwks!EEHeapAlloc+142: 80.68 KBytes worth of outstanding allocations.
    If this is unexpected, please contact the vendor of this module for further assistance with this issue.
      Warning msvcr90.dll is responsible for 11.00 MBytes worth of outstanding allocations. The following are the top 2 memory consuming functions:

    msvcr90!malloc+79: 10.98 MBytes worth of outstanding allocations.
    msvcr90!_calloc_impl+125: 18.70 KBytes worth of outstanding allocations.

     

    Function   mscorwks!EEVirtualAlloc+119
    Allocation type   Virtual memory allocation(s)
    Allocation Count   6 allocation(s)
    Allocation Size   112.00 MBytes
    Leak Probability   23%

     

    Is it the root cause of memory leak? How can I avoid it?

    Thursday, March 24, 2011 10:51 AM

Answers