From marshland at marshland.co.nz Tue Mar 16 11:56:55 2021 From: marshland at marshland.co.nz (Marshland Engineering) Date: Tue, 16 Mar 2021 11:56:55 +1300 Subject: [DUG] USB/Serial disconnect. In-Reply-To: References: Message-ID: <538865269025802219@marshland.co.nz> I'm receiving serial data via USB interface using winsoft software. If I unplug the USB cable, my software crashes. Although there are some error routines within the serial software, I don't think it caters for the port suddenly disappearing. Where do I look for info on this type of error ? Thanks Wallace From jscoulter at gmail.com Tue Mar 16 13:00:55 2021 From: jscoulter at gmail.com (Jeremy Coulter) Date: Tue, 16 Mar 2021 13:00:55 +1300 Subject: [DUG] USB/Serial disconnect. In-Reply-To: <538865269025802219@marshland.co.nz> References: <538865269025802219@marshland.co.nz> Message-ID: I have a feeling that there might be a registry entry you can monitor. I cant remember where it is. You could see what port gets assigned to it, search for it in the registry, then see what happens when you unplug it. But I suspect that there will be code/components out there that will let you monitor USB better that that. I think the Jedi controls have a HID component. That might be of some use. Jeremy On Tue, Mar 16, 2021 at 11:58 AM Marshland Engineering < marshland at marshland.co.nz> wrote: > I'm receiving serial data via USB interface using winsoft software. If I > unplug the USB cable, my software crashes. Although there are some error > routines within the serial software, I don't think it caters for the port > suddenly disappearing. > > Where do I look for info on this type of error ? > > Thanks Wallace > > _______________________________________________ > NZ Borland Developers Group - Delphi mailing list > Post: delphi at listserver.123.net.nz > Admin: http://delphi.org.nz/mailman/listinfo/delphi > Unsubscribe: send an email to delphi-request at listserver.123.net.nz with > Subject: unsubscribe > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20210316/81e5f008/attachment.html