Thanks for the information
I'm going to end the thread if the USB device is unplugged,  so then I need the 
main program to also know the thread has ended so it can go back to 
occasionally checking to see if the device was plugged back in.

>You can find whether your thread is running or not with the 
>readThread.Suspended property,

>but in your program, your thread is always running, it's nether suspended. 
>It's just blocked in a call (to libusbhid_interrupt_read I guess)
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to