<?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: Dynamic memory allocation in Fortran DLL in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Dynamic-memory-allocation-in-Fortran-DLL/m-p/939564#M16710</link>
    <description>Change a(1) to a(*)&lt;BR /&gt;&lt;BR /&gt;Incidentally, you'd get the same error in an executable program if compiled with bounds checking enabled.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Thu, 22 Feb 2001 08:03:14 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2001-02-22T08:03:14Z</dc:date>
    <item>
      <title>Dynamic memory allocation in Fortran DLL</title>
      <link>https://community.intel.com/t5/Software-Archive/Dynamic-memory-allocation-in-Fortran-DLL/m-p/939563#M16709</link>
      <description>The following code:      &lt;BR /&gt;           &lt;BR /&gt;pointer (iaa,a(1))      &lt;BR /&gt;call free(iaa)      &lt;BR /&gt;iaa = malloc(4*2*8066907)      &lt;BR /&gt;           &lt;BR /&gt;do ii = 1, 7566907      &lt;BR /&gt;a(ii) = 0      &lt;BR /&gt;enddo      &lt;BR /&gt;      &lt;BR /&gt;works fine as a part of a Fortran exe program but it &lt;BR /&gt;generates an error as part of a Fortran DLL      &lt;BR /&gt;for a(ii) = 0 when ii=2      &lt;BR /&gt;      &lt;BR /&gt;Unhandled exception in Prog1.exe (TESTSUB.DLL):       &lt;BR /&gt;0xC000008C:  Array Bounds Exceeded.      &lt;BR /&gt;      &lt;BR /&gt;What I can do to run this piece of code inside a Fortran DLL      &lt;BR /&gt;file without any errors?      &lt;BR /&gt;      &lt;BR /&gt;TIA,      &lt;BR /&gt;      &lt;BR /&gt;Izydor</description>
      <pubDate>Thu, 22 Feb 2001 07:51:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dynamic-memory-allocation-in-Fortran-DLL/m-p/939563#M16709</guid>
      <dc:creator>ikawa</dc:creator>
      <dc:date>2001-02-22T07:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic memory allocation in Fortran DLL</title>
      <link>https://community.intel.com/t5/Software-Archive/Dynamic-memory-allocation-in-Fortran-DLL/m-p/939564#M16710</link>
      <description>Change a(1) to a(*)&lt;BR /&gt;&lt;BR /&gt;Incidentally, you'd get the same error in an executable program if compiled with bounds checking enabled.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 22 Feb 2001 08:03:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dynamic-memory-allocation-in-Fortran-DLL/m-p/939564#M16710</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-02-22T08:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic memory allocation in Fortran DLL</title>
      <link>https://community.intel.com/t5/Software-Archive/Dynamic-memory-allocation-in-Fortran-DLL/m-p/939565#M16711</link>
      <description>Isn't it &lt;I&gt;bad form&lt;/I&gt; to call free before malloc?</description>
      <pubDate>Thu, 22 Feb 2001 09:05:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dynamic-memory-allocation-in-Fortran-DLL/m-p/939565#M16711</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-02-22T09:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic memory allocation in Fortran DLL</title>
      <link>https://community.intel.com/t5/Software-Archive/Dynamic-memory-allocation-in-Fortran-DLL/m-p/939566#M16712</link>
      <description>Indeed it is!&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 22 Feb 2001 09:51:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Dynamic-memory-allocation-in-Fortran-DLL/m-p/939566#M16712</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-02-22T09:51:15Z</dc:date>
    </item>
  </channel>
</rss>

