471,357 Members | 1,094 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,357 software developers and data experts.

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 2082
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by jas | last post: by
6 posts views Thread by Patty O'Dors | last post: by
12 posts views Thread by Raymond Lewallen | last post: by
80 posts views Thread by Charles Law | last post: by
22 posts views Thread by Zen | last post: by

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.