Application becomes ”black screen“ state

Hi

I integrated “cudaDecodeD3D9” into my code base(Using DXUT). I want to play mpeg-2 video loop.

First time,it works fine.

When playing again,my application becomes black screen state.

I’m sure all CUDA objects are destroyed and recreated.

Does anyone know how to solve this problem?

Thanks.

When you say black screen state, do you mean your video is replaced by black? Is it still running, but just not displaying anything? I’d advise stepping through the code when this phenomena occurs and seeing how the code path differs from when it runs correctly.