I am playing around with the H264 decoder example in the cuda SDK and I have ported this example to a Qt application, rendering to a QGLWidget.
The decoding works fine and I can see the decoded images rendered as expected. I have a tab widget with multiple tabs each displaying a different QGLWidget. If I switch tabs to any other tab than the one that the cuda process started on, I get a crash in
cutilDrvSafeCallNoSync( cuGLMapBufferObject( o_pImageData, o_pImagePitch, m_glPBO ) );
with error message CUDA_ERROR_INVALID_HANDLE.
Has anyone succesfuly integrated cuda with Qt, or can someone shed some light on this?