I'm doing desktop capturing in a loop with DXGI
. In that I call this function in loop.
dxgiSurface1->Map(&map, DXGI_MAP_READ)
But sometimes map.pBits
is null
. I cannot figure out at what time. It's like random times. If I increase the Sleep()
time in the loop it's not become null
. Please tell me the reason...