Note that there are some explanatory texts on larger screens.

plurals
  1. POException from HRESULT: 0xC00DABE8 when initializing MediaCapture
    primarykey
    data
    text
    <p>I'm trying to capture stream from external usb camera (C#, Windows 8). The following code:</p> <pre><code>DeviceInformationCollection devInfoCollection = await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture); MediaCaptureInitializationSettings settings = new Windows.Media.Capture.MediaCaptureInitializationSettings(); settings.VideoDeviceId = devInfoCollection[0].Id; mediaCaptureMgr = new MediaCapture(); await mediaCaptureMgr.InitializeAsync(settings); </code></pre> <p>In last line (await mediaCaptureMgr.InitializeAsync(settings)) is triggered exception. The variable settings is not null. settings:</p> <blockquote> <p>(VideoDeviceId ="\\?\USB#VID_05E3&amp;PID_0510&amp;MI_00#7&amp;2D043328&amp;0&amp;0000#{e5323777-f976-4f5b-9b55-b94699c46e44}\GLOBAL")</p> </blockquote> <p>Exception text:</p> <pre><code>Exception from HRESULT: 0xC00DABE8 Source "mscorlib" </code></pre> <p>Ok. I tried to do such as:</p> <pre><code>try { mediaCaptureMgr = new MediaCapture(); await mediaCaptureMgr.InitializeAsync(); myCaptureElement.Source = mediaCaptureMgr; await mediaCaptureMgr.StartPreviewAsync(); } catch (Exception ee) { String s = ee.ToString(); } </code></pre> <p>Anyway error occurs on the line (mediaCaptureMgr.InitializeAsync()) In this case: s="System.Exception: Exception from HRESULT: 0xC00DABE8\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\n at TestVideo.MainPage.d__0.MoveNext() in c:\Users\Admin\Documents\Visual Studio 2012\Projects\TestVideo\TestVideo\MainPage.xaml.cs:line 53"</p> <p>And Exception are same:"Exception from HRESULT: 0xC00DABE8"</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload