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

creating a process

Good Morning Group,

I've created an app that "runs in the background "(the window state is
minimized, the showintaskbar is false, and it displays a notify Icon.).
This program will be running on a server and will be doing scheduled
maintenance on a database. What I'm wondering is, would this be better as a
process instead of an app? Since it will be running on a server and writing
to a log file, permissions could be an issue. I was told that a process
would be better suited. I've never coded for a "process" before. Is there
anything special I should know about creating a process? Would there be
major changes to my code if I pasted it inside a "Windows Project"?

Thanks and best regards,

Marco
Nov 15 '05 #1
3 2794
Maybe they meant "Service"? Like web servers can run as a service. You
want to create a service?

Marco Martin wrote:
Good Morning Group,

I've created an app that "runs in the background "(the window state is
minimized, the showintaskbar is false, and it displays a notify Icon.).
This program will be running on a server and will be doing scheduled
maintenance on a database. What I'm wondering is, would this be better as a
process instead of an app? Since it will be running on a server and writing
to a log file, permissions could be an issue. I was told that a process
would be better suited. I've never coded for a "process" before. Is there
anything special I should know about creating a process? Would there be
major changes to my code if I pasted it inside a "Windows Project"?

Thanks and best regards,

Marco


Nov 15 '05 #2
Marco,
Functionality such as you describe is best wrapped up into a .NET Windows
Service. The Framework SDK and Visual Studio.NET help collection have
excellent examples of how to code these.
While debugging can be a little more difficult than a Winforms app running
as a NotifyIcon, it's generally well worth the extra effort to learn how to
do it.
VS.NET has a special project type, "Windows Service" that gives you all the
infrastructure to get started, all pre-written.
Peter

"Marco Martin" <ma**********@sympatico.ca.antispam> wrote in message
news:Xu*******************@news20.bellglobal.com.. .
Good Morning Group,

I've created an app that "runs in the background "(the window state is
minimized, the showintaskbar is false, and it displays a notify Icon.).
This program will be running on a server and will be doing scheduled
maintenance on a database. What I'm wondering is, would this be better as a process instead of an app? Since it will be running on a server and writing to a log file, permissions could be an issue. I was told that a process
would be better suited. I've never coded for a "process" before. Is there anything special I should know about creating a process? Would there be
major changes to my code if I pasted it inside a "Windows Project"?

Thanks and best regards,

Marco

Nov 15 '05 #3
Yes, Service is what I meant. Thanks for the reply. I have a quick (newbie
type) question. Opening Task Manager, I can view Applications and
Processes. Some of the processes are actualy Apps. How does windows make
the difference? For example, svchost.exe is a process and not an app. ..

Marco
"Peter Bromberg [C# MVP]" <pb*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Marco,
Functionality such as you describe is best wrapped up into a .NET Windows
Service. The Framework SDK and Visual Studio.NET help collection have
excellent examples of how to code these.
While debugging can be a little more difficult than a Winforms app running
as a NotifyIcon, it's generally well worth the extra effort to learn how to do it.
VS.NET has a special project type, "Windows Service" that gives you all the infrastructure to get started, all pre-written.
Peter

"Marco Martin" <ma**********@sympatico.ca.antispam> wrote in message
news:Xu*******************@news20.bellglobal.com.. .
Good Morning Group,

I've created an app that "runs in the background "(the window state is
minimized, the showintaskbar is false, and it displays a notify Icon.).
This program will be running on a server and will be doing scheduled
maintenance on a database. What I'm wondering is, would this be better
as a
process instead of an app? Since it will be running on a server and

writing
to a log file, permissions could be an issue. I was told that a process
would be better suited. I've never coded for a "process" before. Is

there
anything special I should know about creating a process? Would there be
major changes to my code if I pasted it inside a "Windows Project"?

Thanks and best regards,

Marco


Nov 15 '05 #4

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

Similar topics

11
by: Joshua Beall | last post by:
Hi All, I am working on a registration system, and one of the things I am going to need to be able to do it setup the database tables for each event that I have registration for. Normally I...
0
by: K Finegan | last post by:
I have an archival process on a large database that runs once a month. At the beginning of the process the triggers and indexes on the tables whose data is moved are dropped, the data is moved and...
19
by: Steve | last post by:
Can anyone point me to a primer for creating OCX controls in VB .net? In particular, I want to access a web service in a VB6 application (not an easy thing to do). So, if I can write an ActiveX...
7
by: mike | last post by:
Hi, I am having difficulty in creating a thread using pthread_create. It seems that pthread_create does not execute 'program', and returns -1; I have checked the API but I am not sure why this...
1
by: Dennis | last post by:
I create a database file using ADOX Catalog. However, I want to later delete the file but I get an error message that the database is being used by another process. I have even tried creating the...
12
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without...
5
by: ljungers | last post by:
Hello to all, Access Newbie here! I'm not sure what to call the process in Access, but I have created a couple of forms, a query and report. I want to create a run time enviroment that does not...
7
chathura86
by: chathura86 | last post by:
i have two prosessors where 1st process send out puts rapidly to the second process and the second process should accept them and process them one by one. its like creating a cue for the second...
1
by: sternr | last post by:
Hey, Is there a way to create a new process that will not be my child process? Meaning, that after opening the new process, if I'll open TaskManager and do "End Process Tree" on the parent...
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
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
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.