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

Home Posts Topics Members FAQ

Process.Start taking a long time, the FIRST time only

I am using the Process class to run an external application from my
application. The first time I call the .Start() method it takes several
seconds for the process to actually start. Subsequent calls to .Start() go
very fast as is how I would expect it. Has anyone seen this before and
perhaps found a workaround? Thanks

Alex
Jul 21 '05 #1
2 2221
Starting another .Net application, by any chance? If you are, it needs to be
jitted the first time it's run, just like the application you're starting it
from.

Tom Dacon
Dacon Software Consulting

"Slide-O-Mix" <Sl*******@discussions.microsoft.com> wrote in message
news:5A**********************************@microsof t.com...
I am using the Process class to run an external application from my
application. The first time I call the .Start() method it takes several
seconds for the process to actually start. Subsequent calls to .Start() go
very fast as is how I would expect it. Has anyone seen this before and
perhaps found a workaround? Thanks

Alex

Jul 21 '05 #2
Actually, this only seems to happen if the process I am trying to start
does not exist, but it still only happens the first time I try and run
the process. As I said before, it runs very quickly the rest of the
time. Is there something that the underlying CreateProcess call does
that caches that information somehow?

Tom Dacon wrote:
Starting another .Net application, by any chance? If you are, it needs to be
jitted the first time it's run, just like the application you're starting it
from.

Tom Dacon
Dacon Software Consulting

"Slide-O-Mix" <Sl*******@discussions.microsoft.com> wrote in message
news:5A**********************************@microsof t.com...
I am using the Process class to run an external application from my
application. The first time I call the .Start() method it takes several
seconds for the process to actually start. Subsequent calls to .Start() go
very fast as is how I would expect it. Has anyone seen this before and
perhaps found a workaround? Thanks

Alex


Jul 21 '05 #3

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

Similar topics

12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
18
by: jas | last post by:
Hi, I would like to start a new process and be able to read/write from/to it. I have tried things like... import subprocess as sp p = sp.Popen("cmd.exe", stdout=sp.PIPE)...
6
by: Patty O'Dors | last post by:
I've got a program that contains a crystal report, and it has a function that saves off one report for each branch of the company, in a loop. This all works beautifully, however - if the user...
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...
80
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...
2
by: Slide-O-Mix | last post by:
I am using the Process class to run an external application from my application. The first time I call the .Start() method it takes several seconds for the process to actually start. Subsequent...
22
by: Zen | last post by:
Hi, My production machine has 2G of memory, when aspnet_wp.exe goes up to about ~1.2G of memory usage, I start get out-of-memory exception. Other processes don't use as much memory and I added...
4
by: tdahsu | last post by:
All, I'd appreciate any help. I've got a list of files in a directory, and I'd like to iterate through that list and process each one. Rather than do that serially, I was thinking I should...
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
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: 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...
0
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 ...

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.