Re: Notification of Driver Unloading
- From: Silver <thesilverring@hot>
- Date: Thu, 18 May 2006 22:05:21 -0700
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?
- Follow-Ups:
- Re: Notification of Driver Unloading
- From: Bill T
- Re: Notification of Driver Unloading
- References:
- Notification of Driver Unloading
- From: Bill T
- Notification of Driver Unloading
- Prev by Date: Re: ActiveSync USB "Connection Not Valid" after resume
- Next by Date: AES Password Encryption - Windows CE 5.0
- Previous by thread: Notification of Driver Unloading
- Next by thread: Re: Notification of Driver Unloading
- Index(es):
Relevant Pages
|