473,405 Members | 2,379 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,405 software developers and data experts.

Process.Start async?

Process.Start("some_program.exe");
Console.WriteLine("I am here");

Assume some_program.exe takes a *long* time to execute...do you see the
Console statement straight away or are you waiting till some_program
terminates?

It appears on XP it is the former and on NT the latter which has caused
much confusion!
--
Wal
http://www.vooose.com

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
2 7887
Process.Start launches an external process then continues with execution.
I.E. it does not hang around for the process to terminate.

You canwait for it to terminate if you wish using "WaitForExit" method...

MSDN:
http://msdn.microsoft.com/library/de...ClassTopic.asp
"vooose" <no****@microsoft.com> wrote in message
news:eM**************@TK2MSFTNGP15.phx.gbl...
Process.Start("some_program.exe");
Console.WriteLine("I am here");

Assume some_program.exe takes a *long* time to execute...do you see the
Console statement straight away or are you waiting till some_program
terminates?

It appears on XP it is the former and on NT the latter which has caused
much confusion!
--
Wal
http://www.vooose.com

*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #2
Thanks for your reply and link Dan. It appears it doesnt honour this for
NT...I am installing NT today to confirm this...

--
Wal
http://www.vooose.com

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #3

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

Similar topics

4
by: Max | last post by:
Just a simple question, can I run an asyc process on the server (with ASP.NET) for hours at a time to do things like send bulk emails? Are there some restrictions and timeouts that are set by the...
12
by: Raymond Lewallen | last post by:
How to wait for a process to stop completion is my goal. Obviously, the looping while waiting for the HasExited property is not a solution.. but thats the best I can come up off the top of my...
7
by: MgGuigg | last post by:
Hello all, This is my first time posting a question to this forum, so here is hoping I am following protocol. I am scraping the rust off my old Basic programming skills, and have just recently...
5
by: Homa | last post by:
Hi all, Can anyone give me some links about how to do an async web service call from aspx and display a temperary page before the web service returns? Thanks, Homa Wong
0
by: Manfred Braun | last post by:
Hi All, I have a problem reading queue-messages async. My QueueReader has a Start() and a Stop() method and if my app starts, it calls Start(). The problem is, that there are possibly several...
10
by: Susan | last post by:
I have a process that takes a while to run so I have it running asynchronously so that the user can continue working. My question is that I want to killl the process if the user changes the search...
1
by: Cam Drab | last post by:
If this async call is running when I close the form, it appears to still be running (through the while-statement loop) even after the form.closed. In the FormClosing event I set the killedApp to...
4
by: Marcolino | last post by:
Hi All, I'm using this code provided by Michael to run Async process: ...
4
by: prit | last post by:
As we know ajax resides between server and client and helps the page's partial rendering...so no need to render all the page controls from scratch....so when we know that some controls requires post...
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: 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?
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
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
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
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.