473,395 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

Coldfire
289 100+
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)
Nov 30 '06 #1
6 10708
bartonc
6,596 Expert 4TB
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?).
Dec 1 '06 #2
Coldfire
289 100+
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 :(
Dec 1 '06 #3
Banfa
9,065 Expert Mod 8TB
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.
Dec 1 '06 #4
NeoPa
32,556 Expert Mod 16PB
Try PortMon from SysInternals.com (Here)
Dec 1 '06 #5
Coldfire
289 100+
Try PortMon from SysInternals.com (Here)
thanks ..alot of helpful material is out there
Dec 1 '06 #6
Coldfire
289 100+
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
Dec 1 '06 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Arun T M | last post by:
I have a Windows Service written in VB .NET which connects to an Exchange Server and accesses the messages in the Public Folders. I am using Collaborative Data Objects to do this. When I run the...
2
by: Neel Word | last post by:
Are there any classes in .NET framework that I can use for communications via serial port (COM1/COM2)?
0
by: Brian at CreekPath | last post by:
I've created an ASP.NET installer using Visual Studio's "Web Setup Project" template. I'm installing to Windows 2000 Server (IIS 5). If I configure the default web site to a port other than 80,...
3
by: Daniel Liberman | last post by:
Hi, everyone. That's my environment: - I have a pocket pc (iPAQ h4350) application developed with VSNET2003/C# that has a SQL Server CE Database, running. That's working fine. Obs: the pocket...
0
by: vijayalakshmi.venkataraman | last post by:
Hello, I have a .NET client that accesses a Java webservice. Let me first say that the client stub I got generated from the wsdl was incomplete and had to make changes to it manually to make it...
1
by: cddeboer | last post by:
I am using MS-Access XP and am using the following syntax Set Application.Printer = Application.Printers("PrinterName") to change the default printer. Then when I go to check the associated...
5
by: Lee | last post by:
I am getting this error trying to run a win forms .net app using the .net 2.0 serial port control. This occurs when the app tries to open the port. I knwo this is some type of security access...
3
by: Nutshell | last post by:
Hello everybody, in my application I'd need to know if a com port is a modem or not (and eventually its description and if it is a null modem). I get the list of com ports available with: string...
1
by: jaleel | last post by:
Hi I have a dll(say DLL1) which log the execution sequence into a text file dll1.txt . Two applications ,say APP1 and APP2 (running in the same machine) are using the DLL1 . The problem is,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.