Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1035263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:31:00+00:00 2026-05-16T14:31:00+00:00

Processes launched via Process.Start seems to have around a 26-second delay when the spawned

  • 0

Processes launched via Process.Start seems to have around a 26-second delay when the spawned process (the “child”) launches more new processes (the “grandchildren”) – I’m trying to find a way to solve this issue. Specifically, this is occurring when the original process (the “parent”) is an ASP.Net website or a Windows Service (tried both).

We’re attempting to run a server-side command-line tool to gather information, make modifications in the file system, and continue with other processes when the “child” is finished. When creating the “child” directly via command-line, there is no delay, and with certain command-line parameters, the “child” does not spawn new processes, and there is no delay. However, with other parameters, the “child” spawns “grandchildren” (the same executable as itself, but we can’t modify its code) and seems to have a 25-30 second (usually 26 seconds) delay before the first process is started, and then runs normally.

I’ve tried modifying the UseShellExecute property, the CreateNoWindow property, and the WindowStyle property, to no effect. ErrorDialog and the RedirectStandard* properties are false.

The code I’m using is as follows:

using (Process p = new Process())
{
    p.StartInfo = new ProcessStartInfo(exePath, args)
    {
        WorkingDirectory = workingDirectory,
        UseShellExecute = true,
        CreateNoWindow = true,
    };
    p.Start();
    p.WaitForExit();
}

Oh, I don’t think it matters as I’ve seen the issue referenced elsewhere (but no solutions), but the exePath I’m using points to msysgit’s git.exe.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:31:00+00:00Added an answer on May 16, 2026 at 2:31 pm

    Hard to tell a reason why this might happen, you need to do further troubleshooting.

    I would suggest that you use Process Explorer and Process Monitor to look for potential problems.

    I would guess that the problem is not directly in your code but more related to the environment of the user. For example, the w3wp.exe process runs in a non-GUI session (session 0) and the user might not be configured to have web access (proxy configuration) so that you might see a timeout issue here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I use Process.Start(), but have the launched process not in the same
I have a C# application which launches another executable using Process.Start() . 99% of
I have WCF service which launches the remote process from Process.Start successfully on stand
I have a process that interfaces with a library that launches another process. Occasionally
I have a shell script that launches a Maven exec:java process - exec mvn
I have around 1000 processes which should be executed independently. I have 8 cores.
Possible Duplicate: .Net Process.Start default directory? I have a C# application, mono to be
My Windows XP/7 program launches a child process using the Windows API CreateProcess() function
After building a service that launches an interactive processes in a user's session via
I'm trying to figure out how to test-drive software that launches external processes that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.