To know which Application is accessing the port COM1/COM2/LPT/any ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Coldfire
    Contributor
    • Nov 2006
    • 289

    To know which Application is accessing the port COM1/COM2/LPT/any ?

    How can I know that which Application is accessing the port COM1/COM2/LPT/any ?

    Is there any software-utility available on net?
    plz help asap

    (i have moved the post from community cafe to here)
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    I believe that once a program has a device control block handle in Windows that all other programs SHOULD not be able to accest that port. You might try posting this in the Windows forum (if that's your os) to see if anybody knows of a call you can make, but basically if a program is denied access to a port then it "knows" that SOMEBODY ELSE has the port (does it really matter who it is?).

    Comment

    • Coldfire
      Contributor
      • Nov 2006
      • 289

      #3
      Originally posted by bartonc
      I believe that once a program has a device control block handle in Windows that all other programs SHOULD not be able to accest that port. You might try posting this in the Windows forum (if that's your os) to see if anybody knows of a call you can make, but basically if a program is denied access to a port then it "knows" that SOMEBODY ELSE has the port (does it really matter who it is?).
      actually i am running a vb program that claims the device at COM1 port....but it replies as an error saying the port is already claimed by someother application...i just needs to know whether there is any utility @ the web which can tell COM1 is in use by this or that application. I am figuring out someother methods to resolve but its not yet worked out well :(

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        I trust the computer you are using actually has a COM1? With the introduction of USB you sometimes get computers without any COM ports now.

        Also is COM1 your modem? Are you currently connected to the internet.

        The COM ports should not be in use just from starting Windows you generally have to have other software running as well that specifically uses them.

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32636

          #5
          Try PortMon from SysInternals.co m (Here)

          Comment

          • Coldfire
            Contributor
            • Nov 2006
            • 289

            #6
            Originally posted by NeoPa
            Try PortMon from SysInternals.co m (Here)
            thanks ..alot of helpful material is out there

            Comment

            • Coldfire
              Contributor
              • Nov 2006
              • 289

              #7
              Originally posted by Banfa
              I trust the computer you are using actually has a COM1? With the introduction of USB you sometimes get computers without any COM ports now.

              Also is COM1 your modem? Are you currently connected to the internet.

              The COM ports should not be in use just from starting Windows you generally have to have other software running as well that specifically uses them.
              com1 is not modem
              i am on internet via LAN card
              OS: WinXP

              Comment

              Working...