From: Alan A. <fru...@gm...> - 2009-02-24 17:49:28
|
Hi, I have a IR Remote control that I'm writing a program for. I've run into a problem however. I handle the error that occurs if you unplug the device while the program is trying to read from, this drops the program into a loop waiting for the device to be replugged in. When the device is plugged in again, the program finds it but then crashes usually with this error: usb.USBError could not release intf 1: No such device The program works properly if the device is unplugged initially, and then plugged in after the program has started. I can post sections of code as requested, but it seems I'm doing things the same as most others form the code I've seen. Anyone have any ideas? Cheers, Alan |