display mirror driver problem

B

bubzhang news

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?!
 
T

Tadd

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top