jfsedlar3rd
asked on
Windows Service Cleanup
I wrote a vb.net windows service that produces a flat file from serveral database locations. The service runs continuously and the event is triggered by a day and time. Can anyone help shed some light on how to cleanup after the services run is complete?
ASKER
Memory consumption stays at about 42,000 kb long after the service has performed its task. I let it sit overnight and the garbage collector had done nothing with it.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I am pretty sure about the Database connections. However I am not so sure about my objects. Should I bet setting my variables to Nothing after I am done with them?
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
What exactly do you mean ? What do you need to cleanup ?