<?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 Re: Access Violation Using ippsFree in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Access-Violation-Using-ippsFree/m-p/931837#M16767</link>
    <description>&lt;P&gt;Hi Nikolay!&lt;/P&gt;
&lt;P&gt;Thank you for your advice. I've found the source of the problem(I wrote too much data to a buffer which overwrote my pointer's parameter) and I corrected it.&lt;/P&gt;
&lt;P&gt;Bendeguy&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2006 18:20:47 GMT</pubDate>
    <dc:creator>bendeguy</dc:creator>
    <dc:date>2006-10-06T18:20:47Z</dc:date>
    <item>
      <title>Access Violation Using ippsFree</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Access-Violation-Using-ippsFree/m-p/931834#M16764</link>
      <description>Hi&lt;BR /&gt;I am using IPP 5.0 with VS 2005. I have some memory that I have allocated ippsMalloc_XXX and that i try to free with ippsFree. But when I call ippsFree i get an access violation. Here is some sample code:&lt;BR /&gt;struct SignalData&lt;BR /&gt;{&lt;BR /&gt;Ipp32fc* pos;&lt;BR /&gt;Ipp32fc* neg;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;struct Frame&lt;BR /&gt;{&lt;BR /&gt;SignalData* data[NUM_BEAMS];&lt;BR /&gt;int estCnt;&lt;BR /&gt;int coeffCnt;&lt;BR /&gt;int corrCnt;&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;Frame* CreateFrame()&lt;BR /&gt;{&lt;BR /&gt;Frame* f = new Frame();&lt;BR /&gt;for(int k=0;k&lt;NUM_BEAMS&gt;{&lt;BR /&gt;f-&amp;gt;data&lt;K&gt; = CreateSignalData();&lt;BR /&gt;}&lt;BR /&gt;f-&amp;gt;coeffCnt = 0;&lt;BR /&gt;f-&amp;gt;corrCnt = 0;&lt;BR /&gt;f-&amp;gt;estCnt = 0;&lt;BR /&gt;&lt;BR /&gt;return f;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void FreeFrame(Frame* f)&lt;BR /&gt;{&lt;BR /&gt;for(int k=0;k&lt;NUM_BEAMS&gt;{&lt;BR /&gt;FreeSignalData(f-&amp;gt;data&lt;K&gt;);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;delete f;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;SignalData* CreateSignalData()&lt;BR /&gt;{&lt;BR /&gt;SignalData* s = new SignalData();&lt;BR /&gt;s-&amp;gt;neg = ippsMalloc_32fc(SIGNAL_LENGTH);&lt;BR /&gt;s-&amp;gt;pos = ippsMalloc_32fc(SIGNAL_LENGTH);&lt;BR /&gt;return s;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void FreeSignalData(SignalData* s)&lt;BR /&gt;{&lt;BR /&gt;ippsFree(s-&amp;gt;neg);&lt;BR /&gt;ippsFree(s-&amp;gt;pos);&lt;BR /&gt;delete s;&lt;BR /&gt;}&lt;BR /&gt;And its the calls to ippsFree in FreeSignalData that causes the access violation. This happens only wen I run this in debug mode.....&lt;BR /&gt;The error messages I get for these to function calls are: First-chance exception at 0x7c926a36 in estimationv1.0.exe: 0xC0000005: Access violation writing location 0xbaadf00d. First-chance exception at 0x7c911e58 in estimationv1.0.exe: 0xC0000005: Access violation reading location 0xbaadf00d.&lt;BR /&gt;thank you for any help.&lt;BR /&gt;&lt;BR /&gt;Thor Andreas&lt;P&gt;Message Edited by thorsan on &lt;SPAN class="date_text"&gt;04-26-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;01:21 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by thorsan on &lt;SPAN class="date_text"&gt;04-26-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;01:25 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/K&gt;&lt;/NUM_BEAMS&gt;&lt;/K&gt;&lt;/NUM_BEAMS&gt;</description>
      <pubDate>Wed, 26 Apr 2006 15:10:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Access-Violation-Using-ippsFree/m-p/931834#M16764</guid>
      <dc:creator>thorsan1</dc:creator>
      <dc:date>2006-04-26T15:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Access Violation Using ippsFree</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Access-Violation-Using-ippsFree/m-p/931835#M16765</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I have the same problem too. Did you solve it? Or can anyone help? Thx&lt;/P&gt;
&lt;P&gt;Bendeguy&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2006 21:33:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Access-Violation-Using-ippsFree/m-p/931835#M16765</guid>
      <dc:creator>bendeguy</dc:creator>
      <dc:date>2006-10-05T21:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Access Violation Using ippsFree</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Access-Violation-Using-ippsFree/m-p/931836#M16766</link>
      <description>&lt;P&gt;I tried it with new and delete operator too and got the same result. I allocate a memory area in the constructor and I write out the pointer values to see if it is changed somewhere. After the allocation my pointer has a value which never changes and when I call the ippsFree or delete[] it throws an acces violation exception. (I call te free because I got a data packet which is larger than my buffer and I want to free it and allocate a new larger one) The WinDbg says the following:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;(764.e80): Access violation - code c0000005 (!!! second chance !!!)&lt;BR /&gt;eax=1e954798 ebx=15b00000 ecx=00000000 edx=00000000 esi=1e954790 edi=1e94c788&lt;BR /&gt;eip=7c910f29 esp=1ea7fd60 ebp=1ea7fd6c iopl=0 nv up ei pl zr na pe nc&lt;BR /&gt;cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246&lt;BR /&gt;ntdll!RtlpCoalesceFreeBlocks+0x36e:&lt;BR /&gt;7c910f29 8b09 mov ecx,dword ptr [ecx] ds:0023:00000000=????????&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I hope somebody can help. Greetings,&lt;/P&gt;
&lt;P&gt;Bendeguy&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2006 22:09:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Access-Violation-Using-ippsFree/m-p/931836#M16766</guid>
      <dc:creator>bendeguy</dc:creator>
      <dc:date>2006-10-05T22:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Access Violation Using ippsFree</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Access-Violation-Using-ippsFree/m-p/931837#M16767</link>
      <description>&lt;P&gt;Hi Nikolay!&lt;/P&gt;
&lt;P&gt;Thank you for your advice. I've found the source of the problem(I wrote too much data to a buffer which overwrote my pointer's parameter) and I corrected it.&lt;/P&gt;
&lt;P&gt;Bendeguy&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2006 18:20:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Access-Violation-Using-ippsFree/m-p/931837#M16767</guid>
      <dc:creator>bendeguy</dc:creator>
      <dc:date>2006-10-06T18:20:47Z</dc:date>
    </item>
  </channel>
</rss>

