A
alexia
Hi all,
This issue is beyond my understanding. I searched the web but failed
to find the solution.
I wrote an application which uses serial to USB device. The problem
occurs if the user unplugs the device before I close the port. The
exception is not in serialport.close but when the application exits. I
can't even catch the exception in main becuase it doesn't happen in
main but in system.dll. i believe that system.dll tires to release the
USB/com resource and fails.
Is there any way to handle this kind of exception?
TIA.
This issue is beyond my understanding. I searched the web but failed
to find the solution.
I wrote an application which uses serial to USB device. The problem
occurs if the user unplugs the device before I close the port. The
exception is not in serialport.close but when the application exits. I
can't even catch the exception in main becuase it doesn't happen in
main but in system.dll. i believe that system.dll tires to release the
USB/com resource and fails.
Is there any way to handle this kind of exception?
TIA.