Re: Notification of Driver Unloading



1. Prevent the USB to serial driver from unloading, Would this prevent
the crash? Is there any way to do it?
Without knowing what the cause of the crash actually is there isn't much you
can do that isn't purely speculation. Run a debug build to see what's
happening.

One thing I know for sure - The USB support isn't exactly fault tolerant
but it should be able handle removal of a device and subsequent unloading of
the client driver.

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?
There are notifications of device removal but, again, without really knowing
what the cause of the crash is it is not possible to say if it is fast
enough. And then even if it is fast enough under tested conditions can you
guarantee that no other conditions could possibly extend the time such that
it wouldn't be?

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com


.



Relevant Pages

  • Re: disklabel differences FreeBSD, DragonFly
    ... I like the peace of mind of KNOWING nothing'll go ... wonky on 'em on a crash, I like the shorter fsck times, I kinda like ... Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ ...
    (freebsd-hackers)
  • Re: device to help find front of car (double vision)
    ... "Interesting" combination of unfortunate events! ... There's no way of knowing for certain because I was alone on a rural ... caused the crash, I went straight off a wide, sweeping, well banked ...
    (sci.med.vision)
  • Re: Propose for Several Dump types
    ... >> us it without knowing anything else. ... >> receive it in email whenever a crash occured. ... I still think ascii format dump can not replace the minidump. ... | UNIX since Zilog Zeus 3.20 ...
    (freebsd-arch)
  • Re: An example for whats to come?
    ... Claude Criquilion sued Bauer because of a crash during the sprint ... > at the '88 World Championships ... Not knowing to whom you may have been responding, ...
    (rec.bicycles.racing)
  • Re: Telling the user whats happening
    ... I can't explain the GWES crash, but your thread.Join call stops message ... Not only is no Notification ... the Notification window also appears. ...
    (microsoft.public.windowsce.app.development)