473,508 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I start a process asynchronously?

Many applications need to lanch a web browser to show its homepage to
users. I used
System.Diagnosis.Process.Start("http://www.google.com");
Or I launched other application like
System.Diagnosis.Process.Start("notepad.exe");

But the problems is the application freezes for a couple of seconds
till the application starts. Is there any way to start a process
asynchronously, so that my application wouldn't freeze? Should I create
a new Thread and call Process.Start within it?

Oct 25 '05 #1
1 2349
Yes you can start the process asynchronously.Move the process start in
seperate method.Create a new thread and call the process start method within
it.Start the thread.

"Sin Jeong-hun" wrote:
Many applications need to lanch a web browser to show its homepage to
users. I used
System.Diagnosis.Process.Start("http://www.google.com");
Or I launched other application like
System.Diagnosis.Process.Start("notepad.exe");

But the problems is the application freezes for a couple of seconds
till the application starts. Is there any way to start a process
asynchronously, so that my application wouldn't freeze? Should I create
a new Thread and call Process.Start within it?

Oct 25 '05 #2

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

Similar topics

77
4504
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
3
5107
by: belgiozen | 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...
7
1718
by: Mark B | last post by:
Hi I was wondering if someone could help me with the syntax for some VB.Net ASPX code to: - Start 20 threads - End all threads after the sooner of 10 seconds or if all of the threads...
3
1681
by: genojoe | last post by:
The following command plays a wave file and opens a media application: Process.Start("C:\Windows\Media\tada.wav") I would like to play a wav file without opening the default media player. How...
1
336
by: Sin Jeong-hun | last post by:
Many applications need to lanch a web browser to show its homepage to users. I used System.Diagnosis.Process.Start("http://www.google.com"); Or I launched other application like...
3
1469
by: JN | last post by:
Hello, I am trying to write a program or service that will run in the background and wait for a particular program to start, when it does I want something else to occur such as a message box. I...
10
2963
by: I. Myself | last post by:
Suppose we spawn a child process with Popen. I'm thinking of an executable file, like a compiled C program. Suppose it is supposed to run for one minute, but it just keeps going and going. Does...
2
7102
by: Twistfactory | last post by:
Hi all, Is there some way to execute an external process that will execute asynchronously and then notify me when it's completed? Any sort of a callback or class member that I could check...
0
2586
by: robert.waters | last post by:
I have a thread that uses the Process object to execute an external script, and redirects the stdout and stderr output from that script asyncronously (using BeginErrorReadLine and...
0
7336
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
7401
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
7063
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
7504
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
5640
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
5059
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
4720
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
1568
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
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.