473,513 Members | 2,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

services

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
Nov 11 '07 #1
4 1043
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]
- mv*@spam.guard.caspershouse.com

"Analizer1" <ve***********@yahoo.comwrote in message
news:Lk*******************@newssvr23.news.prodigy. net...
>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

Nov 11 '07 #2
thank you

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:9A**********************************@microsof t.com...
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]
- mv*@spam.guard.caspershouse.com

"Analizer1" <ve***********@yahoo.comwrote in message
news:Lk*******************@newssvr23.news.prodigy. net...
>>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


Nov 11 '07 #3
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]" <mv*@spam.guard.caspershouse.comwrote in
message news:9A**********************************@microsof t.com...
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]
- mv*@spam.guard.caspershouse.com

"Analizer1" <ve***********@yahoo.comwrote in message
news:Lk*******************@newssvr23.news.prodigy. net...
>>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

Nov 12 '07 #4
when each job is complete all items are close, ie sockets, connections, etc
any support classes are nulled
then they wait for next job,
thanks for your response
"Andrew Faust" <an****@andrewfaust.comwrote in message
news:44**********************************@microsof t.com...
>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]" <mv*@spam.guard.caspershouse.comwrote
in message news:9A**********************************@microsof t.com...
>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]
- mv*@spam.guard.caspershouse.com

"Analizer1" <ve***********@yahoo.comwrote in message
news:Lk*******************@newssvr23.news.prodigy .net...
>>>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


Nov 17 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2227
by: rbt | last post by:
How does one associate a "Description" with a Windows service written in Python? I've just started experimenting with Python services. Here's my code... copied straight from Mr. Hammond's "Python...
6
2540
by: cs | last post by:
I noticed there is some .net services on my winxp. One or two mention the CLR. Does that mean that my .net apps/services wont run before those services start? I need to run my service as early on...
0
2137
by: Diego F. | last post by:
I've been days with that. I'm trying to work with web services sending and returning objects, and the web service must store some objects. - My first try (the most obvious in my opinion) was to use...
26
1863
by: Mr Newbie | last post by:
What do I need to run a web service on my PC ? I know I need the .NET Framework, but do I need IIS Running ?
3
6471
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
7
6003
by: Stu | last post by:
Hi, I have a web service which returns a record set and works well integrated with an asp dot net page. However if I decided to develop a unix app will i be able to read the dataset as it is...
3
4972
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
2
2055
by: sdstraub | last post by:
I have created 5 services in my project, in the 1st service I set servicestorun = array of all 5 services, I have a project installer with 5 service installers, one for each service. I have code...
0
1787
by: krishnaraju | last post by:
HI to all, please help me.its urgent requirement. my question is this is the wsdl file i got from our client.please see at bottom. when iam trying to access that webmethods iam getting...
1
2173
by: Data Entry Outsourcing | last post by:
Data Entry plays vital role in every business area. Data Entry is one such aspects of any business that needs to be handled properly for expanding your business. Data Entry is one of the leading...
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.