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
  1. Home
  2. General Programming
  3. C#
  4. Process.Start() Problems

Process.Start() Problems

Scheduled Pinned Locked Moved C#
questionhelp
3 Posts 3 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.
  • K Offline
    K Offline
    Klazen
    wrote on last edited by
    #1

    Hey, I'm having some problems starting a command-line program using Process.Start(). I pass it the filename and arguments, and it runs the program, but instantly crashes and a "Program has stopped working" error comes up. I can't figure out what is wrong. The program runs fine from the command line and when I use a shortcut, and Process.Start() runs other programs fine. Can anyone tell me what is wrong? For reference, I am running this in Vista.

    C M 2 Replies Last reply
    0
    • K Klazen

      Hey, I'm having some problems starting a command-line program using Process.Start(). I pass it the filename and arguments, and it runs the program, but instantly crashes and a "Program has stopped working" error comes up. I can't figure out what is wrong. The program runs fine from the command line and when I use a shortcut, and Process.Start() runs other programs fine. Can anyone tell me what is wrong? For reference, I am running this in Vista.

      C Offline
      C Offline
      Chetan Patel
      wrote on last edited by
      #2

      As per my experience you have problem in passing arguments. Try without argument passing, and change the way to pass arguments. Hope you will find solution. I have tried to give hint to your problem.

      Best Regards, Chetan Patel

      1 Reply Last reply
      0
      • K Klazen

        Hey, I'm having some problems starting a command-line program using Process.Start(). I pass it the filename and arguments, and it runs the program, but instantly crashes and a "Program has stopped working" error comes up. I can't figure out what is wrong. The program runs fine from the command line and when I use a shortcut, and Process.Start() runs other programs fine. Can anyone tell me what is wrong? For reference, I am running this in Vista.

        M Offline
        M Offline
        Mohamad K Ayyash
        wrote on last edited by
        #3

        Well classical problems like this are solved by using unmanaged code equivilant to the System.Diagnostics namespace from the win32 api. (Hint: search MSDN) Hope this helps!!;)

        To follow the path, Walk with the MASTER, See through the MASTER, Be the MASTER!

        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