Re: Notification of Driver Unloading

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Could it be possible that there are operations happening, such as a read from serial, that actually fail but the return value is not checked for errors?
I think it would be worthwhile investigating the source of your exceptions before trying more drastic measures.

You could protect accesses to possible dangerous areas in a try /except block and hence prevent worse damage occurring when an inconsiderate abuser whips the hardware out from under your feet.



Bill T wrote:
We are using using an FDTI USB to serial adapter with our proprietry X86 hardware running CE 5.0 and everything works geat until the adapter is disconnected while the COM port is communicating. There are exceptions, the system hangs and ultimately our hardware watchdog resets. It appers that this happens becuase the applications is communicating with the COM port while the USB to servir drive is attempting to unload. Since we can not prevent our users from disconnecting at will, we need to find a programatic solution. We have several ideas but don't know if they are viable, please comment on these ideas and offer new ones if you have any.
1. Prevent the USB to serial driver from unloading, Would this prevent the crash? Is there any way to do it?
2. Stop communicating with the adapter when the app is notified that the driver is unloading. Is there any notification like this? Would it be fast enough?


.



Relevant Pages

  • Re: Notification of Driver Unloading
    ... It really isn't clear exactly what is causing the crash. ... abuser whips the hardware out from under your feet. ... that this happens becuase the applications is communicating with the COM ... Prevent the USB to serial driver from unloading, ...
    (microsoft.public.windowsce.platbuilder)
  • swiftly concerning Ramez AL-Sheikh
    ... They are communicating at last aesthetic, round upset, beyond ... then Feyd originally characterises a korean mount ... during Cathy's hardware. ... Until Afif targets the harvests stupidly, ...
    (sci.crypt)
  • Serial Port Issue - Buffer flush?
    ... I have been struggling with communicating through serial port for ... Bottom line is I am unable to recieve data from my ... know the hardware works because it runs with the software that came ...
    (comp.soft-sys.matlab)
  • Re: 2 wire rs485
    ... is a provision for communicating with that hardware, ... end of the hardware connection. ... supported in either the hardware or the standard. ...
    (comp.arch.embedded)