Re: Cancel-safe without a thread?

Tech-Archive recommends: Speed Up your PC by fixing your registry




<BubbaGump> wrote in message
news:11jpf2p2le3ot57lci8og6gjklt8lcpr2t@xxxxxxxxxx

Of course, it's not that everything can be understood by everyone. I
love things that involve eliminating race conditions, although I still
find computer science theories like balanced binary trees a bit
mysterious. I get the idea, but the details won't solidify in my mind
to a point where I'm comfortable. So, to a certain degree I trust
some of the idiosyncrasies about algorithms like red-black trees.

Things I don't understand I leave to someone else. Things I do, I
leave to me.

The problem is how do you know which is which? I have seen a number of
drivers that people thought they understood things like cancel, and yes it
worked correctly 99% of the time. They tested didn't see a problem and
thought "gee, this wasn't that hard!". Then it went into the field, and the
bugs started comming in, so now the work is more than doubled, since someone
has to seperate the logic needed from the driver from the broken cancel
logic, then reimplement the cancel logic with a "blessed solution".

Things like this cause crashes, and the rework always under a tight schedule
does not aid quality.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply



.



Relevant Pages

  • Re: Determine if process is destroyed
    ... Yes, you will always get a cancel notice, otherwise there is no way to know ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... >> Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)
  • Re: Extra reference?
    ... Why am I learning how to write a driver if there's no reason ... OSR groups you will see an amazing amount of thrashing on handling cancel ... This is the purpose of KMDF, a lot of the handling of PnP / Power / Cancel ... Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)
  • Re: How do you make a WDF driver create .Raw & .Translated resourc
    ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... provide you with the resources. ...
    (microsoft.public.development.device.drivers)
  • Re: Cancel IO problems on Server 2003
    ... Your crash is not related to using any old function. ... More importantly run your driver under verifier. ... An API library ... will attempt to cancel the operation ...
    (microsoft.public.development.device.drivers)
  • Re: Help to evaluate the system crash resistance method
    ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... > them if not all, it is a standard kernel exception handling mechnism, the ... Neither of these is a small task such as tweaking an IDT ... >> Don Burn (MVP, Windows DDK) ...
    (microsoft.public.windowsxp.device_driver.dev)