I am trying to use VideoCapture and VideoLogger to save something from my webcam to a file.  However, there is a strange problem - after any recompile of the application, webcam gets stuck in 'used' state, which I can test with starting Windows Movie Maker for example.

Only way to unstuck it is to close VS 2005 completely and restart it.  I disable vshost.exe debugging, thinking it might be a problem...

What to do?