RE: Memory leaking when using CrystalReportViewer in an MDI applicatio



Hello Rowland,

As for the MDI application, have you tested the same MDI form without that
crystalreportviewer control to see whether it has the same memory consume
behavior?

Based on my experience, for memory issue in .net managed application, we
need to determine whether the leak is in managed part or in native code. To
verify this , you need to inspect two performance counters:

** Process---- Private Bytes

** .NET CLR Memory --- Bytes in All Heaps


Managed memory is included in the Private Bytes counter, so Private Bytes
will rise whether your leak is managed or native. Incidentally this is why
one can not determine whether a leak is managed or native from monitor
Task's VMSize(VMsize only represents Private Bytes).

When you check the two counters in perfmon, if the two counters
diverge(meaning Private Bytes increase and #Bytes In All Heaps stay
relatively flat), then the leak is a native one. If the two counters show
the same rising trend, t hen root cause of at least some of the leak is in
managed code.

You can verify this first. Also, if the problem does be specific to the
crystal reportviewer, I would suggest you post in the crystal specific
forum to get further assistance.

http://support.microsoft.com/kb/100368/en-us


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.








.



Relevant Pages

  • Re: Memory increasing even when in debug-break
    ... dll's that can potentially leak memory. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.debugging)
  • Re: .Net is more memory safe?
    ... >> see the hugh amount of memory that it leaks. ... I already mention that .NET does not leak. ... Support is developed with .Net, I failed to see the effect of GC. ...
    (borland.public.delphi.non-technical)
  • Help me find out what memory sticks I use
    ... I think that my webserver needs more memory. ... DMI type 0, 20 bytes. ... ESCD support is available ... Internal Connector Type: None ...
    (comp.os.linux.misc)
  • Re: 2.6.23-rc1-mm2
    ... Zone PFN ranges: ... That doesn't make a whole pile of sense unless the memory map ... MSFT 97) ... # CPU idle PM support ...
    (Linux-Kernel)
  • Kernel 2.6.21.3 does not work with 8GB of RAM on Intel 965WH motherboards.
    ... When I use 8GB of memory on my x86_64 system, ... 4096 and blank "" to let the kernel use all 8GB of memory. ... # Linux kernel version: 2.6.21.3 ... # ACPI Support ...
    (Linux-Kernel)

Loading