RE: Memory leaking when using CrystalReportViewer in an MDI applicatio
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Tue, 17 Oct 2006 02:26:02 GMT
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.
.
- Prev by Date: RE: Memory growth halts with use of Profiler - bug in .NET service
- Next by Date: RE: Memory leaking when using CrystalReportViewer in an MDI applicatio
- Previous by thread: Re: Performance issues on production server running VS 2003 application
- Next by thread: RE: Memory leaking when using CrystalReportViewer in an MDI applicatio
- Index(es):
Relevant Pages
|
Loading