cuvidDestroyDecoder freezes application

Hi,

i’m currently working on a H.264 decoder using CUDA. I adapted the D3D example to my needs. Anything is fine as long as I do not destroy the decoder using cuvidDestroyDecoder in the end. Unfortunately the application freezes (means cuvidDestroyDecoder never comes back). I compared the deconstruction process to the one in the example and found no differences.

My environment is WindowsXP with a GeForce 8400 GS. Developement environment is MSVC++ 2010. nvcuvid and nvcuda have the file version 6.14.11.9038. The SDK version is 3.2.

Does anyone has a good idea, what meight cause the freezing app? Any help would great.

Regards and thanks in advance