Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Problem with Diagnostics.Process

Problem with Diagnostics.Process

Scheduled Pinned Locked Moved C#
questiondebugginghelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    suguimoto
    wrote on last edited by
    #1

    Hello! When I try to execute a program sometimes it doesn´t work, and if I stop the debug the program that I wanted to be executed initializes =/. It really annoys me!! What is happening? Process.Start(ProgrammePfad, AuftragsVerzeichnis); or Process p = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = ProgrammePfad; // Programm Path startInfo.Arguments = AuftragsVerzeichnis; // Programm Arguments startInfo.ErrorDialog = true; startInfo.WindowStyle = ProcessWindowStyle.Normal; p.StartInfo = startInfo; p.Start(); Both of them sometimes work, sometimes don´t! =/ The program that I want to be executed is called InTouch WindowMaker. Thanks! Regards

    S 1 Reply Last reply
    0
    • S suguimoto

      Hello! When I try to execute a program sometimes it doesn´t work, and if I stop the debug the program that I wanted to be executed initializes =/. It really annoys me!! What is happening? Process.Start(ProgrammePfad, AuftragsVerzeichnis); or Process p = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = ProgrammePfad; // Programm Path startInfo.Arguments = AuftragsVerzeichnis; // Programm Arguments startInfo.ErrorDialog = true; startInfo.WindowStyle = ProcessWindowStyle.Normal; p.StartInfo = startInfo; p.Start(); Both of them sometimes work, sometimes don´t! =/ The program that I want to be executed is called InTouch WindowMaker. Thanks! Regards

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      suguimoto wrote:

      When I try to execute a program sometimes it doesn´t work,

      Are you trying to communicate with the program that you try to execute? If not, what exactly does "it doesn't work" mean? You could try calling WaitForInputIdle[^] right after starting the process and see if it helps.

      Regards Senthil _____________________________ My Blog | My Articles | WinMacro

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups