<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unhandled exception in SDK when using FaceModule and SampleReader concurrently on Windows 10 UWP in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Unhandled-exception-in-SDK-when-using-FaceModule-and/m-p/1096741#M67167</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I need to use the high res color stream of the&amp;nbsp;&lt;/SPAN&gt;SampleReader plus the FaceModule in a Windows 10 UWP app.&lt;/P&gt;

&lt;P&gt;It works fine to show the color image stream through StreamReader.Activate() - similar to the DF_StreamReader_UWP_CS example.&lt;/P&gt;

&lt;P&gt;However, if I add the initialization of the FaceModule, the app init method still finishes successfully (status codes = no error). But directly afterwards, the RealSense SDK crashes the app with an unhandled win32 exception - before the first frame arrives. If I deactivate the SampleReader activation, face tracking works.&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;_senseManager = SenseManager.CreateInstance();
_reader = SampleReader.Activate(_senseManager, StreamType.STREAM_TYPE_COLOR, 640, 480, 30);
_reader.SampleArrived += ReaderOnSampleArrived;

_faceModule = FaceModule.Activate(_senseManager);   // Crashes if this line is present

var status = await _senseManager.InitAsync();
status = _senseManager.StreamFrames();&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The DF_FaceViewer_UPW_CS example from the SDK uses the processed image of the FaceModule for the on-screen display (_faceModule.Sample). But that obviously results in lower quality images and very low FPS.&lt;/P&gt;

&lt;P&gt;Any ideas on how to make it work to combine face tracking with the StreamReader?&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;System: Windows 10 (1511, 10586.318),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;RealSense SR300 with the latest SDK (10.0.26.396)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2016 13:39:23 GMT</pubDate>
    <dc:creator>Andreas_J_</dc:creator>
    <dc:date>2016-06-15T13:39:23Z</dc:date>
    <item>
      <title>Unhandled exception in SDK when using FaceModule and SampleReader concurrently on Windows 10 UWP</title>
      <link>https://community.intel.com/t5/Software-Archive/Unhandled-exception-in-SDK-when-using-FaceModule-and/m-p/1096741#M67167</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I need to use the high res color stream of the&amp;nbsp;&lt;/SPAN&gt;SampleReader plus the FaceModule in a Windows 10 UWP app.&lt;/P&gt;

&lt;P&gt;It works fine to show the color image stream through StreamReader.Activate() - similar to the DF_StreamReader_UWP_CS example.&lt;/P&gt;

&lt;P&gt;However, if I add the initialization of the FaceModule, the app init method still finishes successfully (status codes = no error). But directly afterwards, the RealSense SDK crashes the app with an unhandled win32 exception - before the first frame arrives. If I deactivate the SampleReader activation, face tracking works.&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;_senseManager = SenseManager.CreateInstance();
_reader = SampleReader.Activate(_senseManager, StreamType.STREAM_TYPE_COLOR, 640, 480, 30);
_reader.SampleArrived += ReaderOnSampleArrived;

_faceModule = FaceModule.Activate(_senseManager);   // Crashes if this line is present

var status = await _senseManager.InitAsync();
status = _senseManager.StreamFrames();&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The DF_FaceViewer_UPW_CS example from the SDK uses the processed image of the FaceModule for the on-screen display (_faceModule.Sample). But that obviously results in lower quality images and very low FPS.&lt;/P&gt;

&lt;P&gt;Any ideas on how to make it work to combine face tracking with the StreamReader?&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;System: Windows 10 (1511, 10586.318),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;RealSense SR300 with the latest SDK (10.0.26.396)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 13:39:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unhandled-exception-in-SDK-when-using-FaceModule-and/m-p/1096741#M67167</guid>
      <dc:creator>Andreas_J_</dc:creator>
      <dc:date>2016-06-15T13:39:23Z</dc:date>
    </item>
  </channel>
</rss>

