Re: Notification of Driver Unloading
- From: "SergeiR" <sergeir@xxxxxxxxx>
- Date: Tue, 23 May 2006 10:11:57 -0700
Hill Bill,
I am not sure if you can force a driver not to unload, but potentially this
can be implemented, if you do not supply an entry point for this function
( DeInit() or something like this).
However, you can set up hook in your sowftware module to monitor specific
driver loading or unloading, by specifying that driver class or ID to watch
for. Then, when the culprit driver is ebing called to unload, you will get a
call as well. PB help describes an example ho wimplement this.
Best wishes
SergeiR
"Bill T" <billthe@xxxxxxxxxxx> wrote in message
news:ulBsN2teGHA.4892@xxxxxxxxxxxxxxxxxxxxxxx
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: Steve Maillet \(eMVP\)
- Re: Notification of Driver Unloading
- References:
- Notification of Driver Unloading
- From: Bill T
- Notification of Driver Unloading
- Prev by Date: Re: USB/RNDIS
- Next by Date: GDI clean up problem
- Previous by thread: Re: Notification of Driver Unloading
- Next by thread: Re: Notification of Driver Unloading
- Index(es):
Relevant Pages
|