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. ProcessStart and COM port

ProcessStart and COM port

Scheduled Pinned Locked Moved C#
helpcomquestion
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.
  • I Offline
    I Offline
    il_masacratore
    wrote on last edited by
    #1

    Help me!! I'm launching an external app using System.Diagnostics.ProcessStart() to download data from an inventory pistol. I can't integrate this app, I only can execute it. But my problem is that it download data from comm port, and when I launch it from windows all is fine and works, but when I start It from my app doesn't communicate. Seems that can open comm port. Can somebody hel me?

    Visit my blog at http://dotnetforeveryone.blogspot.com/

    T 1 Reply Last reply
    0
    • I il_masacratore

      Help me!! I'm launching an external app using System.Diagnostics.ProcessStart() to download data from an inventory pistol. I can't integrate this app, I only can execute it. But my problem is that it download data from comm port, and when I launch it from windows all is fine and works, but when I start It from my app doesn't communicate. Seems that can open comm port. Can somebody hel me?

      Visit my blog at http://dotnetforeveryone.blogspot.com/

      T Offline
      T Offline
      TJoe
      wrote on last edited by
      #2

      Some things to check: 1. How are you starting it outside of your application? If you are using a short-cut or a batch file, check to make sure you are using the same commad-line parameters. 2. I believe only 1 application can have the COM port open, so are you sure it's not already open when you launch it from your application? 3. Are you launching the application using the same credentials? If you are changing users in your application (using impersonation) or are launching your application as a different user, then maybe that person doesn't have rights. This includes rights to open the COM port and/or write to the "download" directory, if any. 4. Finally, as a test try launching it using a small test app that only starts the third-party app. This would help rule out ProcessStart as the culprit.

      Take care, Tom ----------------------------------------------- Check out my blog at http://tjoe.wordpress.com

      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