473,657 Members | 2,484 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Coldfire
289 Contributor
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 10737
bartonc
6,596 Recognized Expert Expert
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 Contributor
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 Recognized Expert Moderator Expert
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,568 Recognized Expert Moderator MVP
Try PortMon from SysInternals.co m (Here)
Dec 1 '06 #5
Coldfire
289 Contributor
Try PortMon from SysInternals.co m (Here)
thanks ..alot of helpful material is out there
Dec 1 '06 #6
Coldfire
289 Contributor
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
1914
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 service, I get the following error... System.Runtime.InteropServices.COMException (0x80010106): ] at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32
2
1574
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
1354
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, then enter that port during installation, I get the following error when I click Next: "The folder path '?' contains an invalid character." Furthermore, if you continue the installation, none of the folders under C:\Inetpub\wwwroot\myapp get...
3
3160
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 is NOT supposed to have a wireless conection available. - I have an access database on a standalone desktop running Windows XP, i.e., there is NO guaranteed network connection available. - I've developed a webservice with VSNET2003/C# too to do...
0
1645
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 work to an extent. I generated a java client stub for the java web service and have been modifying my .NET client stub using the java client stub as a reference and things seemed to work fine until I got the following error. In my client...
1
2813
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 printer port for any of the printers (using application.printers("differentprintername").port, they all return the same printer port as the printer that I switched to, even though some printers have different ports associated. Anyone know what is going...
5
55755
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 problem but I have no clue where to fix it. Help....
3
6465
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 portList = System.IO.Ports.SerialPort.GetPortNames(); and then i set a port object like this: System.IO.Ports.SerialPort sPort = new System.IO.Ports.SerialPort(portList); Is there some property of the serial port who tells me indirectly it is a...
1
1167
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, sometimes, therre is a chance that APP1 and APP2 access the DLL1 which in turn accesses the text file at the same time. This leads to a contention betweeen applications and applications halt. The code for Logging is thread safe within an application....
0
8421
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8844
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8742
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8621
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.