What are possible causes of IDirect3DVertexBuffer9::Lock failing?

Posted by Suma on Stack Overflow See other posts from Stack Overflow or by Suma
Published on 2010-05-05T07:35:18Z Indexed on 2010/05/05 7:38 UTC
Read the original article Hit count: 212

Filed under:

In error reports from some I have quite often seen following behaviour: IDirect3DVertexBuffer9::Lock fails, returned error code is D3DERR_NOTAVAILABLE.

Once this happens, quite frequently (but not always) it is followed by CreateTexture or CreateVertexBuffer failing with error D3DERR_OUTOFVIDEOMEMORY.

What are possible reasons for vertex buffer lock failure? Could virtual memory address space exhausted, or what?

© Stack Overflow or respective owner

Related posts about direct3d9