cmdolcet
asked on
Access to COM port is denied
I am trying to test out some functionality when I try and write to a cOM port and I keep getting access to port is denied. I originally open my com port and set it up however Im testing out to see if the device becomes unplugged (which I do do) I get an Access to the port is denied error
COM-Error.png
COM-Error.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have you had this working before? Is this new development work? I see that the port name is COM30...is that correct?
ASKER
I have not had this working before. You are correct the device is opening COM 30 which is ok with my program
1) What operating system are you working with?
2) Are you having UAC issues with Vista/Windows 7?
3) Is this application running from a network share?
2) Are you having UAC issues with Vista/Windows 7?
3) Is this application running from a network share?
ASKER
OK I figured it out. I was keeping a reference to the serial com and not closing it correctly. I am all set now
Thanks for all the help
Thanks for all the help
Well, that answered the "Is something else using the COM port?" question...
ASKER
COM-Port-Access-Denied.png