L
Lemon Juice
Hello All,
Is it possible to access the same COM port from two different processes?
For instance I have written a DLL that connects to and manages a COM port.
Internally my dll uses the .net(3.5) SerialPort component. On the same
machine I have two different applications that use my dll. I want both
applications to receive events and set pin states on the COM port
(ie. CDHolding, DTR, RTS etc) However when the second application tries to
open the COM port I get an exception 'system.UnauthorizedAccessException:
Access to the port 'COM3' is denied.'
Is this possible?
What's the right way to do this?
Would creating a service and connecting clients to it using IPC be better?
Is it possible to access the same COM port from two different processes?
For instance I have written a DLL that connects to and manages a COM port.
Internally my dll uses the .net(3.5) SerialPort component. On the same
machine I have two different applications that use my dll. I want both
applications to receive events and set pin states on the COM port
(ie. CDHolding, DTR, RTS etc) However when the second application tries to
open the COM port I get an exception 'system.UnauthorizedAccessException:
Access to the port 'COM3' is denied.'
Is this possible?
What's the right way to do this?
Would creating a service and connecting clients to it using IPC be better?