What if two application run in different processes how do you expect them to
sare the same memory.
In a 32 bit machine a process can access 4GB flat address space. Normaly
windows application can use 2GB of them so if my all .NET application share
2GB or 4GB how many application can I run at the same time?
Of course using *file mapping* technique one can share a lot more memory
between precesses, but I don't thing this is the way GC works.
It might be (I'm not sure) that all application domains in the same process
to share the same managed heap. But it is for sure that not all .NET
application in the system share the same heap.
However for the original post; I don't thing you are able to stop the GC and
I don't see any reason to do that.
If you have any problems it might be something wrong with your application.
Would you give more information about your problem if you have any?
If you are concerned about performance don't be. IMHO GC is well optimized
and in normal conditions you shouldn't feel its exisitence.
B\rgds
100
Bram said:
Hi,
there is only one managed heap AFAIK.
Ask yourself, if every application has it's own heap, why would the garbage
collector need one ?
They are one and the same. If you are creating objects, memory comes from
the managed heap.
If you stop using those objects, the garbage collector reclaims this memory
(eventually).
BTW, why would you want to stop the garbage collector while creating the
form ?
Have you ever noticed the presence of the garbage collector (with regard to
performance, memory usage is another issue) ?
Greetings,
Bram.
Vadym Stetsyak said:
hmm, AFAIK Garbage Collector operates in the managed heap and every
..NET
app
has its own heap, so I can assume that every heap has its own collector.
"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
I don't think so.
What would happen if one app stops GC and never starts it again?
--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com
Hi there!
Is there any way how can I stop garbage collection for a period of time.
Lets say, I have a form. Before form load I pause the GC and when the
form
is shown resume GC