473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Don't stop a windows service until ....

i do some job in timerBaseInternet.Elapsed

but i don't want to stop the service until this job is finished...

What can i do for this ?

and i can't use canStop to false cause it's only when service is not
running...

any idea ?

Nov 17 '05 #1
4 1906
Hi,

not very sure what you mean

IF you use a timer and you want to stop the timer while processing you can
do so by disabling the timer while you do the procesing.

Is this what you want?
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"ucasesoftware" <uc***********@hotmail.fr> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
i do some job in timerBaseInternet.Elapsed

but i don't want to stop the service until this job is finished...

What can i do for this ?

and i can't use canStop to false cause it's only when service is not
running...

any idea ?

Nov 17 '05 #2
thx for help but no

in my .Elapsed i update a database

When the users exit my software... they close the Windows Service...

But if they do when i update my database i have a serious problem...

so i need to wait that the update is finished to close my windows
service

understand ?

Nov 17 '05 #3
This doesn't sound right. A Windows Service is an application that starts
with the operating system, even when no user is logged on. Yet you are saying
that when users "exit your software" they close the Windows Service....
Could you be more specific?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ucasesoftware" wrote:
i do some job in timerBaseInternet.Elapsed

but i don't want to stop the service until this job is finished...

What can i do for this ?

and i can't use canStop to false cause it's only when service is not
running...

any idea ?

Nov 17 '05 #4
my windows service update a database : local msde => sqlserver internet

so when nothing is doing in the software... the service have no job...
so i stop it...

but if the service is stopping when my database is update... i could
have some errors...

Nov 17 '05 #5

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

Similar topics

2
by: 0to60 | last post by:
I have a windows service that when started creates two threads: one thread that runs a TcpListener waiting for TcpClients to connect, and another thread that reads from the resulting sockets. My...
11
by: Frank Rizzo | last post by:
Hello, My c# based windows service takes a while to dispose. I have to release bunch of resources all over the place and unfortunately it can take 20-40 seconds before I can cleanly exit. ...
2
by: Nathan | last post by:
I have created a windows service but am having difficulties handling exceptions in the OnStart. What I want to do is if an exeception occurs during any of the code executed during the OnStart is...
2
by: MA | last post by:
Hi all! I have developed a webservice that writeing and reading files in different folders. I need to be able to start and stop this service by using a web interface (start and stop button)....
7
by: shai | last post by:
I am working at .net 1.1, writing in c#. I have windows service with a COM object. Every unexpected time The COM object throw an error that make my service get stuck (do not respond). I can catch...
5
by: darthghandi | last post by:
I've created a class to listen to all interfaces and do a BeginAccept(). Once it gets a connection, it passes the connected socket off and stores it in a List. Next, it continues to listen for...
0
by: mattcfisher | last post by:
Hi, I have two windows services running together. One is the main program, and one is an "updater" wrapper for the main. The updater service starts and stops the main one (as in you should never...
0
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I have a windows application that does not stop running whenever the application exits. Could someone fill me in on what I am doing wrong? Here is the relevant code:...
3
by: mahenderp | last post by:
Hi, I''m developing a windows service using C#.Net, which runs in System Account. I don't want that service to be stop manually and I don't want anybody to terminate / kill my service at any...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.