<?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 R6025 Pure virtual function call error when exiting program in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/R6025-Pure-virtual-function-call-error-when-exiting-program/m-p/1070409#M57993</link>
    <description>&lt;P&gt;I am writing a face tracking program. It displays color image. Whenever the program closes, It shows the R6025 error, which says pure virtual function call.&lt;/P&gt;

&lt;P&gt;It disappears when I comment out the code to convert PXCMImage to Writablebitmap. Can someone help to figure out what causes the error? Thanks!&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;public WriteableBitmap Convert2Image(PXCMCapture.Sample sample)
        {
            PXCMImage.ImageData data;
            sample.color.AcquireAccess(PXCMImage.Access.ACCESS_READ, PXCMImage.PixelFormat.PIXEL_FORMAT_RGB32, out data);
            WriteableBitmap wbmp = data.ToWritableBitmap(STREAM_WIDTH, STREAM_HEIGHT, 96.0, 96.0);
            sample.color.ReleaseAccess(data);
            return wbmp;
        }&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2016 05:31:28 GMT</pubDate>
    <dc:creator>Song_G_</dc:creator>
    <dc:date>2016-05-23T05:31:28Z</dc:date>
    <item>
      <title>R6025 Pure virtual function call error when exiting program</title>
      <link>https://community.intel.com/t5/Software-Archive/R6025-Pure-virtual-function-call-error-when-exiting-program/m-p/1070409#M57993</link>
      <description>&lt;P&gt;I am writing a face tracking program. It displays color image. Whenever the program closes, It shows the R6025 error, which says pure virtual function call.&lt;/P&gt;

&lt;P&gt;It disappears when I comment out the code to convert PXCMImage to Writablebitmap. Can someone help to figure out what causes the error? Thanks!&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt;public WriteableBitmap Convert2Image(PXCMCapture.Sample sample)
        {
            PXCMImage.ImageData data;
            sample.color.AcquireAccess(PXCMImage.Access.ACCESS_READ, PXCMImage.PixelFormat.PIXEL_FORMAT_RGB32, out data);
            WriteableBitmap wbmp = data.ToWritableBitmap(STREAM_WIDTH, STREAM_HEIGHT, 96.0, 96.0);
            sample.color.ReleaseAccess(data);
            return wbmp;
        }&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 05:31:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/R6025-Pure-virtual-function-call-error-when-exiting-program/m-p/1070409#M57993</guid>
      <dc:creator>Song_G_</dc:creator>
      <dc:date>2016-05-23T05:31:28Z</dc:date>
    </item>
    <item>
      <title>Solved the issue after</title>
      <link>https://community.intel.com/t5/Software-Archive/R6025-Pure-virtual-function-call-error-when-exiting-program/m-p/1070410#M57994</link>
      <description>&lt;P&gt;Solved the issue after debugging line by line.&lt;/P&gt;

&lt;P&gt;The error is caused by function call between threads (mine is wpf UI thread and realsense thread).&lt;/P&gt;

&lt;P&gt;sensemanager.StreamFrames(false) will use a different thread.&lt;/P&gt;

&lt;P&gt;Hope this can help someone.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 14:17:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/R6025-Pure-virtual-function-call-error-when-exiting-program/m-p/1070410#M57994</guid>
      <dc:creator>Song_G_</dc:creator>
      <dc:date>2016-05-23T14:17:28Z</dc:date>
    </item>
  </channel>
</rss>

