Virtual Serial Port Driver DllImport and Orphaned Ports(Read 1191 times)
Virtual Serial Port Driver DllImport and Orphaned Ports on: November 17, 2016, 10:46:28 AM
I have been using DllImport to bring the functions from vspdctl.dll into a C# unit test project. In order to test the utility I have written, I create a virtual port pair and pass one of the ports to it in order to test its ability to handle serial message data.

My issue comes from the fact that when attempting to create a port pair and then delete it once I am finished with it, it is possible for the ports to become orphaned such that they are detected by Windows using the "mode" command but are no longer recognizable in the Eltima VSPD GUI. It is also not possible for them to be removed.

Should I debug a unit test that creates and deletes a port pair and allow it time between the two commands, it works as expected, deleting the port pair.

Any help would be appreciated.



Re: Virtual Serial Port Driver DllImport and Orphaned Ports Reply #1 on: November 17, 2016, 11:36:31 AM
My issue comes from the fact that when attempting to create a port pair and then delete it once I am finished with it, it is possible for the ports to become orphaned such that they are detected by Windows using the "mode" command but are no longer recognizable in the Eltima VSPD GUI. It is also not possible for them to be removed.

Can these ports be opened? And are they listed in Device Manager?



Re: Virtual Serial Port Driver DllImport and Orphaned Ports Reply #2 on: November 17, 2016, 02:07:45 PM
These ports can't be opened and they are not listed in Device Manager



 

Sitemap 1 2 3 4 5