You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before I get into my issue, thank you very much for the library.
I am writing a simple winform app to write and read data from my custom HID device (keyboard). It work fine when connect, write and read data in order. But when I does not write data to the device and call Read(timeouts) function, the app will stuck because the read func is waiting for new data form IO.
I have tried to edit read function by add a Task and cancel when timeout occurs but I just created new issue that write feature is not work anymore. I think because the read method is still holding the IO.
I googled about my problem and figure out that the read method can set the timeout but it set for C++ platform, so I dont know how to deal with it and still stuck in C#.
So I raise a issue and hope that anyone has faced this issue and knew how to deal with it in C# library (nativemethod wrapping).
Thank you,
Trong Truong
The text was updated successfully, but these errors were encountered:
Hi Contributors,
Before I get into my issue, thank you very much for the library.
I am writing a simple winform app to write and read data from my custom HID device (keyboard). It work fine when connect, write and read data in order. But when I does not write data to the device and call Read(timeouts) function, the app will stuck because the read func is waiting for new data form IO.
I have tried to edit read function by add a Task and cancel when timeout occurs but I just created new issue that write feature is not work anymore. I think because the read method is still holding the IO.
I googled about my problem and figure out that the read method can set the timeout but it set for C++ platform, so I dont know how to deal with it and still stuck in C#.
So I raise a issue and hope that anyone has faced this issue and knew how to deal with it in C# library (nativemethod wrapping).
Thank you,
Trong Truong
The text was updated successfully, but these errors were encountered: