Re: services

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I just wanted to add that if you are using any resources like files, sockets or database connections you'll want to make sure you close them explicitly instead of waiting for the GC to take care of it.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com


"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:9ABED07C-450D-4E1E-A707-9F9DDBACA1E6@xxxxxxxxxxxxxxxx
Analizer1,

No, once you release the references to the objects you are no longer using, the GC will act when there is enough memory pressure to warrant it.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"Analizer1" <vettes_n_jets@xxxxxxxxx> wrote in message news:LkJZi.19783$Pv2.11022@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
i have some services im finishing up
during there operation 24/7
should there be some doevents() so the garbage collector
can do its thing...

Im not sure how all this works
tks




.



Relevant Pages