Solved

Memory leakage

Posted on 2004-08-06
4
211 Views
Last Modified: 2010-04-15
I'm on the tail end of building my app.  Before I left last night I started it and memory was 19,252K.  This morning it was up to 22,088.  

Questions:  
What's an acceptable level?  
How do you begin to track these leaks down?
0
Comment
Question by:natejacobs
4 Comments
 
LVL 4

Accepted Solution

by:
NTAC earned 500 total points
Comment Utility
If you are using C#, there isn't any memory leaks.  There is a garbage collector that will de-allocate all your unused object,variables, structs...

What you are most likely seeing is just the growing/shrinking of your data that you are using in your program.  19-22 megs is not bad at all.  When your computer starts slowing down noticibly because you are using up the entire memory and the OS is forced to start paging everything--that's when you need to worry.

0
 
LVL 37

Expert Comment

by:gregoryyoung
Comment Utility
there could possibly be leaks of unmanaged memory if you are using pinvoke calls ... if you are only using managed code this is perfectly normal, garbage collection will handle this for you.
0
 
LVL 8

Expert Comment

by:Razzie_
Comment Utility
0
 
LVL 9

Expert Comment

by:msdixon
Comment Utility
i had a windows service that would incrementally consume more and more memory. up to a gig in fact. but not to worry, the os will freeze when it's doing that much paging. it's quite fun to see the IT director's face that lovely shade of magenta.

i never did find the problem, and don't work there any more... maybe you should just find a new job.

so, to answer your question, 22 meg is quite small for a .net app.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now