I have some C# code using the latest eval version of SerialTools to open a physical port, COM2, create a virtual port, COM4 and direct any data read on COM2 to COM4. All of the SerialTools events fire for both port and virtual port except for OnDataFromPort(). What I do is that when some data is read in on COM2, I perform the following statement:
The statement seems to work without any errors. However, I would have expected the vport_OnDataFromPort(string data) method to be invoked. It is not firing. Strange since vport_OnOpened fires when I open the port as a regular port.
Why is this happening?