Re: NDIS Allocate memory fail???
- From: "Alireza Dabagh [MS]" <alid@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 17 Oct 2007 02:19:11 -0700
what exact NDIS API do you call to allocate memory?
Also as somebody else suggested, since application should have access to
this memory, it is better to have application allocate the memory, probe and
lock the memory in your driver (to make it non pageable and mapped to system
address space) and use system address in your driver.
You need to lock the memory if you may access it at dispatch level which is
very likely the case.
-ali
This posting is provided "AS IS" with no warranties, and confers no rights
"Anand Choubey" <AnandChoubey@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:0E88A603-DC60-4C04-8FA1-ACCFA83AAE57@xxxxxxxxxxxxxxxx
Hi,
I am writing a NDIM IM driver. In order to communicate with user land
application, I allocate 3 buffers on nonpaged memory 10 MB each.
My driver gets success to allocate memory in first time only for all buffers.
Next time on wards, driver gets fail to allocate memory. I am very much
sure that there is no any memory leak which I have tested.
Please suggest me what should I do??
Configuration OS:: XP SP2
Ram:: 504 MB (8 MB shared)
Processor:: 2.8 GHz Pentium
--
With regards
thanks
Anand Choubey
.
- References:
- NDIS Allocate memory fail???
- From: Anand Choubey
- NDIS Allocate memory fail???
- Prev by Date: Re: KeStackAttachProcess
- Next by Date: routing table question
- Previous by thread: Re: NDIS Allocate memory fail???
- Next by thread: Driver Test Manager (2 tests fail in the unclassified tests)
- Index(es):
Relevant Pages
|