Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

Memory leak ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CRM Master - 16 Feb 2008 23:04 GMT
Hi

I have a Visual Studio 2005 c# windows application that keep using more and
more memory and I can't seem to see where the problem is.

Is there someway to see what resources are used and how much memory they
take ? I suspect some datasets/connections not beeing closed but can't seem
to find the place.

Jack
Peter Bromberg [C# MVP] - 17 Feb 2008 01:01 GMT
There are several good memory profiler applications / addins available. But
frankly, the best thing to do is carefully review your code and only use a
programming pattern that insures your connections are indeed closed even if
an exception is thrown, e.g. the using ( xxx) {   ... } construct along with
try / catch / finally, with the connection being closed in the finally code
block.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com 

> Hi
>
[quoted text clipped - 6 lines]
>
> Jack
Rad [Visual C# MVP] - 19 Feb 2008 20:20 GMT
> Hi
>
[quoted text clipped - 6 lines]
>
> Jack

Get yourself a good profiler and it will explain to you the consumption of
your memory in terms of actual usage, objects created, etc. Try RedGate
ANTS (red-gate.com) or JetBrains dotTrace (jetbrains.com)
Signature

http://www.thinkersroom.com/bytes


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.