System.Diagnostics.Process running too slow

B

Bob

Hi,

I am using System.Diagnostics.Process in my C# console application to
start a third party application, it works all fine but it just running
too slow, could any one let me know whether it is possible to have the
application run faster by using Process?

This is my code:

Process p = new Process();
p.StartInfo.WorkingDirectory = strWorkingDirectory;
p.StartInfo.FileName = ThirdPartyApplicationPath;//(C:\Program Files
\myApp.exe")
p.StartInfo.Arguments = ApplicationArguments;
p.StartInfo.CreateNoWindow = true;
p.Start();
p.WaitForExit();

Many Thanks.
 
A

Arne Vajhøj

Bob said:
I am using System.Diagnostics.Process in my C# console application to
start a third party application, it works all fine but it just running
too slow, could any one let me know whether it is possible to have the
application run faster by using Process?

This is my code:

Process p = new Process();
p.StartInfo.WorkingDirectory = strWorkingDirectory;
p.StartInfo.FileName = ThirdPartyApplicationPath;//(C:\Program Files
\myApp.exe")
p.StartInfo.Arguments = ApplicationArguments;
p.StartInfo.CreateNoWindow = true;
p.Start();
p.WaitForExit();

It cost a little bit to start a process.

But as soon as it is started then it should run just as fast as
when run directly.

Arne
 
I

Ignacio Machin ( .NET/ C# MVP )

Hi,

I am using System.Diagnostics.Process in my C# console application to
start a third party application, it works all fine but it just running
too slow, could any one let me know whether it is possible to have the
application run faster by using Process?

This is my code:

        Process p = new Process();
        p.StartInfo.WorkingDirectory = strWorkingDirectory;
        p.StartInfo.FileName = ThirdPartyApplicationPath;//(C:\Program Files
\myApp.exe")
        p.StartInfo.Arguments = ApplicationArguments;
        p.StartInfo.CreateNoWindow = true;
        p.Start();
        p.WaitForExit();

Many Thanks.

What you mean with running slow?
Is the start-up the slow part or the running of the spawned process?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top