How to free a com port if it is using by another application

G

Guest

Guest
hello, i am making a project for serial port communication in vc++ for win32 application.i have sucessfully opened the port. my task is that i have to read data from another application.now the problem that is arising is when we run that application for reading purpose, then it capture the com port and that time when i run my code it shows invalid com port.
plz help me out as soom as possible.

 

greenfield

Distinguished
Jan 3, 2010
460
0
18,810
Hello: Perhaps some hint for you here

How to free com ports:

in WinXp too but i solved this by going through this steps

My computer->properties->Device Manager->Communication Ports->Properties->Port Settings->Advanced.

Here i found the list of com ports which were in use and selected the unused one my problem was solved.

Source:

http://forums.cnet.com/5208-6618_102-0.html?threadID=134066



Application using com port

http://www.tomshardware.com/forum/148519-45-application-port


Process Explorer v11.33

By Mark Russinovich

http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx



port is free:

http://www.tomshardware.com/forum/24660-42-port-free



port not free, under Windows XP

http://www.mail-archive.com/tutor@python.org/msg13516.html





Free Serial Port Monitor
http://free-serial-port-monitor.hhd-software.qarchive.org/




Release a used port by the application

http://www.technixupdate.com/release-a-used-port-by-the-application-with-currports/




Free Up a Serial (COM) Port

http://www.pcguide.com/opt/opt/resCOM-c.html



http://stackoverflow.com/questions/570098/in-c-how-to-check-if-a-tcp-port-is-available

cheers..



 
G

Guest

Guest
thanks for the reply..when i use serial port monitor the data is coming only on com3. as u said i have tried that also,this solves the problem but data is not coming at that port. so i have set my code to com3 bt same problem as described earlier is coming..now what to do..??
 

TRENDING THREADS