My program's memory up and down / Windows steadily rising

G

Guest

Hi all,

I inherited this Windows CE.net application and I've got some strange memory
stuff going on. I was using the gc.totalmemoryused function to track the
memory used by my program. At the same time I was manually going into
Windows to the control panel / system / memory to find out what the program
memory used was. I plotted these two numbers on a graph and I can see that
while my program's memory used is up and down (as is to be expected with
garbage collection), Windows memory is steadily growing over time. I don't
understand what's going on. My program is the only thing that is running on
this machine so I don't understand why Windows memory is growing. Any ideas
of what I could look for, please? Thanks.
 
G

Guest

Sounds like it's leaking native memory that the GC has no control over.
Look at allocations of GCHandles, etc.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
G

Guest

I surely do appreciate the help. I'm not sure how to look at the allocations
you speak of. I'm still so new at memory management that I'm not even sure
what a GCHandle is. This is written in VB if that is relevant. Could you
point me towards a tutorial or something that will help me understand what
GCHandles (and what else might be covered by etc) are? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top