How are you sharing (locking, etc.) your memory?
Your memory size and how it might be paged or swapped would be the first
thing I'd investigate and trial & error (for example, try allocating it to
be much larger -- do you see corruption earlier? i.e., maybe not on screen,
but if you zero the off-screen bytes and perhaps put in a quick loop to
check and ensure all those are zero... it being dependent on high system mem
usage seems very suspect)
"bubzhang news" wrote:
> I write a display mirror driver for capturing screen .
> In this driver, I create a share memory and force GDI to output to this
> memory with 16bit bitmap format. In user mode application, I read this
> memory again to view the bitmap.
>
> But, there is something wrong when the whole system memory utilization
> becomes high, the bitmap becomes incorrect partly.
>
> I'm sure it's the driver bug, Not user mode application bug!
>
> Someone help me?!
|