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

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.
2 answers Last reply
More about free port application
  1. 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..
  2. 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..??
Ask a new question

Read More

Configuration Comm Port Win32 Windows XP