G
George Gre
Hi,
I wrote a c# programme that listens to incoming TCP requests and services
them. This programme is meant to be running as long as the server its
installed on is running. So we assume for ever(!). My problem is that I have
it running for 2 days now on my pc (win2Ksp3 P4 2GHz,512MB Ram - framework
v1.0.3705) and the taskmanager reports that this process takes 97MB ram/130
VMemory and it looks that its eating up more ram(!!).
To help out the garbage collector I tried to use as much stacked based
variables. Also for the objects created if they had a dispose() method I am
calling it when I am done with the object. If the objects dont have a
dispose() method, I am setting the refference to null. I am using ADODB to
get a recordset from a VB DLL. What is the best way to tell the GC that I am
done with the object, since the ADODB.RecordClass does not have a dispose
method?
Do they suffice?? Do you have links to relevant articles??
Any help will be much appreciated,
-George.
I wrote a c# programme that listens to incoming TCP requests and services
them. This programme is meant to be running as long as the server its
installed on is running. So we assume for ever(!). My problem is that I have
it running for 2 days now on my pc (win2Ksp3 P4 2GHz,512MB Ram - framework
v1.0.3705) and the taskmanager reports that this process takes 97MB ram/130
VMemory and it looks that its eating up more ram(!!).
To help out the garbage collector I tried to use as much stacked based
variables. Also for the objects created if they had a dispose() method I am
calling it when I am done with the object. If the objects dont have a
dispose() method, I am setting the refference to null. I am using ADODB to
get a recordset from a VB DLL. What is the best way to tell the GC that I am
done with the object, since the ADODB.RecordClass does not have a dispose
method?
Do they suffice?? Do you have links to relevant articles??
Any help will be much appreciated,
-George.