System.Diagnostics.Process running too slow

  • Thread starter Thread starter Bob
  • Start date Start date
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.
 
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
 
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?
 
Back
Top