G
Guest
I am getting another OutOfMemory problem which seams a little strange.
I have only tested in debug as yet, so this may be significant, but
basically I have a big app, which uses one form and adds and remove controls
on the form to make up to about 50 different forms according to
configuration. I have used one form to make sure things are both fast and
efficient with memory and this fundamentally works well.
I have found that I am getting an OutOfMemoryException sometimes when I am
creating controls to polace on the form.
I have looked into the Garbage Collector (GC) a bit so I checked on memory
GetTotalMemory and it said 4.7Mb, which is about what I would expect. I am
using a 128Mb XDAIIs, and I have about 60Mb free for programs and 30Mb free
for storage.
Should I be getting this message.
Does GC.GetTotalMemory reflect the Total Memory Used, or does it not include
fragmentation, work differently with DLLs or anything.
I have also read some stuff about 64Kb methods causing OOM Exceptions, but
that doesnt mean anything to me.
I have also read about the Systems Out Of Memory Dialog, but I think this is
a myth, as I have never seen one.
I am sure that I can drop a load of stuff behind me if I want, but I was
hoping to leave that until the next version. MVPs - Help me move to VS2005 by
nailing this issue.
Thanks in advance.
I have only tested in debug as yet, so this may be significant, but
basically I have a big app, which uses one form and adds and remove controls
on the form to make up to about 50 different forms according to
configuration. I have used one form to make sure things are both fast and
efficient with memory and this fundamentally works well.
I have found that I am getting an OutOfMemoryException sometimes when I am
creating controls to polace on the form.
I have looked into the Garbage Collector (GC) a bit so I checked on memory
GetTotalMemory and it said 4.7Mb, which is about what I would expect. I am
using a 128Mb XDAIIs, and I have about 60Mb free for programs and 30Mb free
for storage.
Should I be getting this message.
Does GC.GetTotalMemory reflect the Total Memory Used, or does it not include
fragmentation, work differently with DLLs or anything.
I have also read some stuff about 64Kb methods causing OOM Exceptions, but
that doesnt mean anything to me.
I have also read about the Systems Out Of Memory Dialog, but I think this is
a myth, as I have never seen one.
I am sure that I can drop a load of stuff behind me if I want, but I was
hoping to leave that until the next version. MVPs - Help me move to VS2005 by
nailing this issue.
Thanks in advance.