473,498 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Background Processes

Ed
Is there a way to run an application in the background other than through a
service.

As I understand it when creating a service it is best practice not have any
kind of user interface. My application doesn't need an interface all the
time, but it does need it periodically. This is why a want to do something
other than a service.

Can I inherit a class from a System.Diagnostics.Process class? If so, how
do I make the Main() function to start it?

thanks in advance,
ed
Aug 13 '05 #1
1 1651
Hello Ed,

It is considered best practice that a Windows Service does not display a
User Interface, and I would recommend sticking to that recommendation
for a multitude of reasons. Services should be able to perform their
tasks in an unattended mode.

This does not mean that you could not write a user interface
application, which interacts with your service through some means of
inter-process communication, for example through remoting, Web Services
or Sockets.

This way you get the best of both worlds: Unattended execution of your
background processing, and interactivity through a GUI.

Bennie Haelen

Ed wrote:
Is there a way to run an application in the background other than through a
service.

As I understand it when creating a service it is best practice not have any
kind of user interface. My application doesn't need an interface all the
time, but it does need it periodically. This is why a want to do something
other than a service.

Can I inherit a class from a System.Diagnostics.Process class? If so, how
do I make the Main() function to start it?

thanks in advance,
ed

Aug 13 '05 #2

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

Similar topics

2
10155
by: Bob | last post by:
Hi, I'm trying to build a PHP page which launches another php script to be run in the background. The web page should return immediately, while the background script may run for 10 minutes or...
0
494
by: David L. Jessup | last post by:
I'm sorry if this is a duplicate posting. I attempted to post before, but it doesn't appear to have been sent out correctly. Anyway, I've got a problem, and I'm hoping somebody here can help....
1
1638
by: Jelle Feringa // EZCT / Paris | last post by:
James, Terry, Thanks for your constructive comments. Let's see if we can come down to the heart of the matter, it seems to me these are fundamental issues relevant in any shell script. I'm...
2
1862
by: Lord Merlin | last post by:
Hi there Can someone please tell me how to run a script in the background? I have a stored procedure, which gathers a lot of info on various tables in a MSSQL , and from that rebulds a large...
3
1320
by: ari | last post by:
hey all, i have a shared sub called WriteToErrorLog(msg as String) for obvious purposes. How do i send that to a background thread? i'm stuck on the part where thread.start executes a subroutine...
2
4846
by: Dave Hughes | last post by:
Just noticed something rather annoying after upgrading my test box (a Linux server running DB2 UDB v8 for LUW) to fixpak 11 (for reference it was previously on fixpak 7). In the past I've relied...
11
3098
by: news | last post by:
I've a PHP script that does some stuff, zips up some files, and starts an FTP process. I need it to do the Zip and FTP in the background and let the page finish, otherwise the user could have...
33
1966
by: bonk | last post by:
I have an application that needs to perform some background work, i.e. Logging, wich must not block the main thread. How would I basically design such a scenario? It is obvious that I should do...
2
2168
by: Hilmar Bunjes | last post by:
Hi, I'm working on a web application in ASP.NET 3.5 and need some help with processing stuff in the background. The user who visits a web page can make reservations. Each reservation will...
10
13556
by: laredotornado | last post by:
Hi, I'm using PHP 5. I have a function that takes a little while to run, and I don't want the user to have to wait while it does. Is there a way to run this function in the background? ...
0
7168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7210
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
5465
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
4916
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
4595
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
3096
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
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
659
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
293
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.