473,396 Members | 1,766 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,396 software developers and data experts.

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 1649
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
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
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
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
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
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
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
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
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
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
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
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
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
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
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,...

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.