Overlapped IO and vertex/index buffers...

Is there any rule or reason why I shouldn't call Unlock on an index or vertex buffer from inside an IoCompletion routine (last paramater to ReadFileEx) At this point I get access violations if I do, but I'm not sure if this is because there's a rule about this (which I can't find anywhere in any documentation) or if I'm doing something else wrong...

I've already tried D3DCREATE_MULTITHREADED and that didn't help at all.

Phill



Answer this question

Overlapped IO and vertex/index buffers...

  • mk0991

    Never mind, I had a bad "smart pointer" implementation releasing the vertex buffer on me before the Unlock call was being made (therefore the access violation). Fixed that and now it works just fine.

    Phill

  • Overlapped IO and vertex/index buffers...