<?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: Mixing memory allocation with IPP and  standard C malloc in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Mixing-memory-allocation-with-IPP-and-standard-C-malloc/m-p/892225#M11648</link>
    <description>Great, you are welcome :)</description>
    <pubDate>Fri, 29 Dec 2006 22:26:56 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2006-12-29T22:26:56Z</dc:date>
    <item>
      <title>Mixing memory allocation with IPP and  standard C malloc</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Mixing-memory-allocation-with-IPP-and-standard-C-malloc/m-p/892222#M11645</link>
      <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I don't know much about the difference among memory allocation with ipp function, standard function or with c++ "new". Maybe a primitive question:&lt;BR /&gt;&lt;BR /&gt;I use IPP function (ippsMalloc_8u in this case) to allocate memories for a signal signal structure. On other places of the programm the standard C malloc is used again and STL objects like stack, queue are also used. I must say quite chaotic&lt;IMG src="https://community.intel.com/ISN/Community/en-US/emoticons/emotion-4.gif" alt="Smiley with tongue out [:-P]" /&gt;&lt;BR /&gt;&lt;BR /&gt;Then the error will occur after the programm runs for a while and allocation and free  memory with the hybrid methods are executed for many times. The programm will stop at the line of allocating memory with ippsMalloc_8u or sometimes at "new". It seems rather random as to where and when it happens. I am sure that I free  properly all the memories I allocated. &lt;BR /&gt;So I doubt it's maybe not allowed to mix memory allocation modes massively. Is there any such cautions as to Ipp allocation?&lt;BR /&gt;&lt;BR /&gt;The version I used is Ipp4.0. Does anyone has a similar question and can help out?&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Dec 2006 20:56:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Mixing-memory-allocation-with-IPP-and-standard-C-malloc/m-p/892222#M11645</guid>
      <dc:creator>binjian</dc:creator>
      <dc:date>2006-12-29T20:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing memory allocation with IPP and  standard C malloc</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Mixing-memory-allocation-with-IPP-and-standard-C-malloc/m-p/892223#M11646</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;the rule is simple:&lt;/P&gt;
&lt;P&gt;always use appropriate pair of funtion for allocating/delete memeory blocks. If some block was allocated with ippMalloc - you need to use ippFree to delete block, if block was allocated with CRT malloc/new call you need to use CRT free/delete functions. Never mix allocation/deleting API and you will have no problem (if you have no dynamic memory overruns in code).&lt;/P&gt;
&lt;P&gt;BTW, why did not you upgrade to IPP 5.1 (or IPP 5.2 beta, which is the latest availbale version)?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2006 21:12:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Mixing-memory-allocation-with-IPP-and-standard-C-malloc/m-p/892223#M11646</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-12-29T21:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing memory allocation with IPP and  standard C malloc</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Mixing-memory-allocation-with-IPP-and-standard-C-malloc/m-p/892224#M11647</link>
      <description>Hello Vladimir,&lt;BR /&gt;&lt;BR /&gt;thank you very much for your quick reply. It's all I want to know that there's no special rule for IPP allocation. &lt;BR /&gt;&lt;BR /&gt;We bought IPP 4.0 two years ago. Since then we've been satisfied with our version as to the part we needed. Anyway I'll take a look at the IPP 5.2.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Binjian&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Dec 2006 21:36:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Mixing-memory-allocation-with-IPP-and-standard-C-malloc/m-p/892224#M11647</guid>
      <dc:creator>binjian</dc:creator>
      <dc:date>2006-12-29T21:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing memory allocation with IPP and  standard C malloc</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Mixing-memory-allocation-with-IPP-and-standard-C-malloc/m-p/892225#M11648</link>
      <description>Great, you are welcome :)</description>
      <pubDate>Fri, 29 Dec 2006 22:26:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Mixing-memory-allocation-with-IPP-and-standard-C-malloc/m-p/892225#M11648</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-12-29T22:26:56Z</dc:date>
    </item>
  </channel>
</rss>

