I’m running verifier.exe for the first time on my KMDF driver. The driver is very passive atm: just some notification routines.
But after boot, the verifier already shows approximately 200k allocation attempts (all successful… in ‘special pool’) and after about 40 minutes this climbed to over a million.
Now I doubt my driver is doing this, there is only one call to ExAllocatePoolWithTag followed by a kdprint. And even when I unload my driver the number of allocations keep growing.
Is this normal? If not… what could be causing it? In the list of ‘Drivers’ being verified, only my driver is listed and its status is ‘unloaded’.
A second short question that I know the answer to but hopefully someone has some new insight:
Is there a chance of support in SDV for C++ (please don’t kill me for mentioning this awful word on this list :$). I’m not actually using any major C++ constructs, but I use it to be able to locally declare variables and have default parameter values in a few functions.
I’ve read about the SDV in my ‘Developing drivers with the WDF’ book and wanted to try it but… failed because of this. But (IMHO) the SDV shouldn’t reject a driver’s source on the extension alone.
Now for the dangerous question (maybe Peter should stop reading here :P): Should I convert my driver to C so that I can use SDV? I already compile with W4 and run preFAST…
Because I’m only using the C++ compiler for small (athough veeery convenient) things I guess it is worth it, plus I’m not an exerienced kernel developer yet so it will probably teach me a lot…
I apologize again for mentioning the ++ word.