M
Mike Peretz
I am trying to optimize my C# program, but no matter what I try the
application keeps eating memory. I verified all the references and even got
special software to count references. I made sure all the reference count
reaches zero for all the objects that are no longer used. I also call
Dispose as much as possible. Regardless, the memory is not freed. Even if I
force the GC, some memory gets freed but not much.
I believe the memory is taken by the framework itself. Connection pool,
Thread pool or some other resources the framework uses. I have no way to
know where all the memory is, and therefore I have no way to optimize my
application.
Any ideas how I can control the memory under the framework?
application keeps eating memory. I verified all the references and even got
special software to count references. I made sure all the reference count
reaches zero for all the objects that are no longer used. I also call
Dispose as much as possible. Regardless, the memory is not freed. Even if I
force the GC, some memory gets freed but not much.
I believe the memory is taken by the framework itself. Connection pool,
Thread pool or some other resources the framework uses. I have no way to
know where all the memory is, and therefore I have no way to optimize my
application.
Any ideas how I can control the memory under the framework?