S
Samuel
Hi
I have written an application that processes large images and therefore uses
a lot of memory.
Due to the fact that this application suppose to be widely distributed I
need to control the memory consumption, I release all objects when no long
in use and I call the garbage collector (passing 2 [for 2nd generation] as a
parameter) often.
The results that I get is not satisfactory and I wonder what can be done to
actually force the system to free all memory taken and no longer in use.
I noticed that when I run another application at the same time and the other
application took an extreme amount of memory (600mb) my application's memory
use went down to 16mb (from 40-50mb).
Can I cause that to happen from within the application (It seems that .NET
releases memory in 1 application when another application is requiring
memory). It also proved that there is no memory leak in my application
Thank you in advance ,
Samuel
I have written an application that processes large images and therefore uses
a lot of memory.
Due to the fact that this application suppose to be widely distributed I
need to control the memory consumption, I release all objects when no long
in use and I call the garbage collector (passing 2 [for 2nd generation] as a
parameter) often.
The results that I get is not satisfactory and I wonder what can be done to
actually force the system to free all memory taken and no longer in use.
I noticed that when I run another application at the same time and the other
application took an extreme amount of memory (600mb) my application's memory
use went down to 16mb (from 40-50mb).
Can I cause that to happen from within the application (It seems that .NET
releases memory in 1 application when another application is requiring
memory). It also proved that there is no memory leak in my application
Thank you in advance ,
Samuel