Albert
August 9, 2005, 12:26pm
1
I have a global buffer defined as
#define SIZEB 3000000
PCHAR buffer;
in driver entry i allocate and initialize the buffer as
buffer=ExAllocatePool( NonPagedPoolCacheAligned ,SIZEB);
RtlFillBytes(buffer,SIZEB,‘1’);
In another function that is called in some dispatcher, I write
if(buffer[OFFSET]==‘2’){
KdPrint((“\n 2 buffer[%u] is : %c”,OFFSET,buff[OFFSET]));
}
else if(buffer[OFFSET]==‘1’){
KdPrint((“\n 1 buffer[%u] is : %c”,OFFSET,buff[OFFSET]));
}
I cannot get the reason why in the debugger I never see the contents
of the location OFFSET!!!
any help
One possibility is that OFFSET is not in the range 0 … SIZEB-1
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com ] On Behalf Of Albert Pinto
Sent: 09 August 2005 17:26
To: Windows System Software Devs Interest List
Subject: [ntdev] buffer problem
I have a global buffer defined as
#define SIZEB 3000000
PCHAR buffer;
in driver entry i allocate and initialize the buffer as
buffer=ExAllocatePool( NonPagedPoolCacheAligned ,SIZEB);
RtlFillBytes(buffer,SIZEB,‘1’);
In another function that is called in some dispatcher, I write
if(buffer[OFFSET]==‘2’){
KdPrint((“\n 2 buffer[%u] is : %c”,OFFSET,buff[OFFSET]));
}
else if(buffer[OFFSET]==‘1’){
KdPrint((“\n 1 buffer[%u] is : %c”,OFFSET,buff[OFFSET]));
}
I cannot get the reason why in the debugger I never see the
contents of the location OFFSET!!!
any help
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’ To unsubscribe send a blank email to
xxxxx@lists.osr.com