By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,665 Members | 1,258 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,665 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.