473,473 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Execution of an Executable File in a Seperate Process


Hi,

I have a working windows service,it is looking for files
on the disk
and when some of the files are cupdated it calls an
executable. But it
takes a lot of time(about 10 minutes) to run the
executable.So while
that executable is running,if I try to stop the windows
service while
the executable(MYPROGRAM.EXE) is running,it will wait for
a time(about
20 seconds) for the main windows thread to abort.If it
does not finish
its work, the service process is killed AUTOMATICALLY and
tells
something like "the service did not stop ina timely
fashion".
As the windows service will never be able to finish its
work under a
minute,
my service always is stooped by WINDOWS and got the
message "the
service did not stop ina timely fashion".

I need a asynchronous way to execute the MYPROGRAM.EXE in
a different
process than the windows service process so that even if
the service
stops,if MYPROGRAM.EXE will continue to run..

One way to do is to call a web service method
asynchronously which
executes MYPROGRAM.EXE ...So the .NET code for the
windows service
will not suspend when it calls the windows service
method. and will
stop ina timely fashion when it is signaled. But I think
there should
be better ways of implementing it without using IIS.

I'll appreciate very much if you help...
Jul 21 '05 #1
0 1204

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

Similar topics

4
by: Caroline | last post by:
I'd like to launch an executable file from a web page. Basically, the user enters seven parameters and then clicks a button to generate a graph. The input is written to a file and then read by...
75
by: Beni | last post by:
I have been programming in C for about a year now. It sounds silly, but I never took the time to question why a C(or C++ or Java) program execution begins only at the main(). Is it a convention or...
0
by: Jorge | last post by:
I'm writing an application that uses system.diagnostics to run an executable that will allow me to create a map. However the program fails to start or if its start it is not creating any output. I...
0
by: Varadha | last post by:
Hi, I am need to have Mutiple Instance of a executable (process.exe) i my application. My application will be listening for request in a port. It will be done by a seperate...
0
by: belgi | last post by:
Hi, I have a working windows service,it is looking for files on the disk and when some of the files are cupdated it calls an executable. But it takes a lot of time(about 10 minutes) to run the...
17
by: romixnews | last post by:
Hi, I'm facing the problem of analyzing a memory allocation dynamic and object creation dynamics of a very big C++ application with a goal of optimizing its performance and eventually also...
15
by: polas | last post by:
Hi everyone - I have a question. I am just playing around with C (I realise there are better ways to do what I want, but I would like to do it this way to increase my understanding of C) and would...
4
by: Kerem Gümrükcü | last post by:
Hi, i wonder that the Process.Start(...) needs full path to the executable to start it, even the executable is listed in the PATH Variable and can be launched from any console on my system. Is...
5
by: Guillermo Antonio Amaral Bastidas | last post by:
Hi everybody, I have a quick and probably dumb question, keep in mind I just dumped my old love FastCGI + Perl for it's younger hotter friend PHP5. If the user calls a time consuming script...
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
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...
1
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...
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,...
1
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
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
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...

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.