0x887601C2
is DDERR_SURFACELOST
and related to presentation of the video, such as for example that during playback you switch users, logoff, screensaver is started etc. Video renderer is losing the resources it is using to display video, hence the error.
If you get this immediately on Run
, maybe you are running your application on a dual monitor system, with the video renderer set to be on one monitor while effectively the window is located by most on the other, and requires a different setup in order to re-acquire hardware resources for video presentation.