Link to home
Create AccountLog in
Avatar of jfsedlar3rd
jfsedlar3rdFlag for United States of America

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?
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

>> Can anyone help shed some light on how to cleanup after the services run is complete?

What exactly do you mean ? What do you need to cleanup ?
Avatar of jfsedlar3rd

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
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
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
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.