you must have read access to entire area that you trying to read
that means if a byte is straddling on other page than you need Read access
to both the pages
use IsBadReadPtr() and also intersperse your Calls with GetLastError()
or set a seh to trap failures that way you can easily pinpoint the failures to certain areas rathere than looking from scratch
|