Re: maximum driver handles per process?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi mate

Is there a limit to the number of driver handles (one per thread) I can
open from a given process?

As far as I know, the only limit is that of a process handle table
(i.e. more than 16,000,000), so that, for the practical purposes, the
number is unlimited

I have a
project currently being tested on Win03 that causes some strange
crashes. When running with five open handles it works just fine. If I
bump that up to 10, the entire system goes unstable. I just want to
know for sure that it is (a beast of a) bug in my code.

Apparently, you don't open these handles just for the fun of doing it,
do you??? Instead,
you must be sending requests to your driver, so that the
problem,apparently, lies with the code that processes these requests
(it is impossible to say what exactly goes wrong without seeing your
code, but there is a good chance that it lies with synchronization).
Alternatively, the problem may lie with some bug in IRP_MJ_CREATE
handler (in fact, quite unlikely because these routines normally don't
do that much....)



Anton Bassov


Brannon wrote:
Is there a limit to the number of driver handles (one per thread) I can
open from a given process? I'm using Win2k, WinXP, Win03. I remember
seeing a KB article about a crash in Win2k that occures if you open too
many handles to a driver. (Anyone got a source on that?) I have a
project currently being tested on Win03 that causes some strange
crashes. When running with five open handles it works just fine. If I
bump that up to 10, the entire system goes unstable. I just want to
know for sure that it is (a beast of a) bug in my code.

.



Relevant Pages

  • Re: maximum driver handles per process?
    ... Please do not send e-mail directly to this alias. ... but there is a good chance that it lies with synchronization). ... the problem may lie with some bug in IRP_MJ_CREATE ... I'm using Win2k, WinXP, Win03. ...
    (microsoft.public.development.device.drivers)
  • Re: International Peace March (19th / 20th March 2005)
    ... > visious lies. ... > So, where Randall lies, is not that RosAsm had a bug, its when he claims ... > that RosAsm symbolmanagment is useless. ... > what Randall blamed, but that was NOT the bug, at all. ...
    (alt.lang.asm)
  • Re: BUG in 2.6.22-rc2-mm1: NIC module b44.c broken (Broadcom 4400)
    ... wireless tree. ... That's a patch against 2.6.22-rc3. ... If that works then we know that the bug probably lies outside the ...
    (Linux-Kernel)
  • Re: FF developer html representation
    ... auto update, perhaps there is a new build with some bug in it or ... Half lies are worth twice as much as whole lies. ...
    (alt.html)
  • Re: ie6 peekaboo problem
    ... This long standing bug has been suppressed in IE7 ... so the Peekaboo Bug is finally on the ... How's that for a lingering prejudice against MS browsers! ... Half lies are worth twice as much as whole lies. ...
    (alt.html)