Allocating Memory(Roddy,Mark and others read this)

Hi
I’m using HTSCPP and have a class that want newing an array of that about
100 Mega Byte
HTSCPP allocate memory with NonPagedPool option.it’s not good for me
becasue afer allocating behavior of windows is crashy.
I using ZwAllocateVirtualMemory but result is same.

Please help me.

In the System process context, call ZwCreateSection without a file handle,
and then ZwMapViewOfSection, this will allocate memory in the user space of
System process.
You can access this memory later from System process context on
PASSIVE_LEVEL.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Mohammad Tarhsaz”
To: “Windows System Software Developers Interest List”
Sent: Sunday, August 10, 2003 11:58 AM
Subject: [ntdev] Allocating Memory(Roddy,Mark and others read this)

> Hi
> I’m using HTSCPP and have a class that want newing an array of that about
> 100 Mega Byte
> HTSCPP allocate memory with NonPagedPool option.it’s not good for me
> becasue afer allocating behavior of windows is crashy.
> I using ZwAllocateVirtualMemory but result is same.
>
> Please help me.
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi
thanks maxim for reponse.
I preveiusly create a Memorymapped in app layer and use this in kernel
mode with ZwMapViewOfSection but result was same as others.

Is your way is same as my way ?

So allocate using PagedPool. The new method in htscpp is just a front end to
ExAllocatePoolWithTag, and supports all ExAllocatePool options. If you
cannot use pageable memory, 100MB of NPP is a bit of a choke point for the
system. You might consider allocating paged pool instead and locking down
areas of this allocation as needed.

=====================
Mark Roddy
Hollis Technology Solutions
www.hollistech.com
xxxxx@hollistech.com

-----Original Message-----
From: Mohammad Tarhsaz [mailto:xxxxx@yahoo.com]
Sent: Sunday, August 10, 2003 3:58 AM
To: Windows System Software Developers Interest List
Subject: [ntdev] Allocating Memory(Roddy,Mark and others read this)

Hi
I’m using HTSCPP and have a class that want newing an array of that about
100 Mega Byte HTSCPP allocate memory with NonPagedPool option.it’s not good
for me becasue afer allocating behavior of windows is crashy. I using
ZwAllocateVirtualMemory but result is same.

Please help me.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com