<?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: Fortran COM module wizard bug in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Fortran-COM-module-wizard-bug/m-p/980356#M25941</link>
    <description>You will need to send a detailed bug report to vf-support@compaq.com  This user forum is not where official requests for support should go.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Fri, 18 Jan 2002 01:10:08 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2002-01-18T01:10:08Z</dc:date>
    <item>
      <title>Fortran COM module wizard bug</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-COM-module-wizard-bug/m-p/980355#M25940</link>
      <description>We have discovered a problem with the COM module wizard: the wrapper code generated by the wizard does not re-initialise BSTR pointers used when retrieving output strings from COM calls, and this can cause heap errors and user breakpoint in NTDLL when debugging, as described in other messages in this forum. &lt;BR /&gt;As a work-around, we re-initialise BSTR pointers in all wrapper functions that use character string output parameters, i.e. set pointers to 0 as shown in the example below: &lt;BR /&gt;    CHARACTER(LEN=*), INTENT(OUT) :: Name ! BSTR &lt;BR /&gt;    !DEC$ ATTRIBUTES REFERENCE :: Name &lt;BR /&gt;    INTEGER(4) $RETURN &lt;BR /&gt;    INTEGER(INT_PTR_KIND()) $VTBL ! Interface Function Table &lt;BR /&gt;    POINTER($VPTR, $VTBL) &lt;BR /&gt;    INTEGER(INT_PTR_KIND()) $BSTR_Name ! BSTR &lt;BR /&gt;    INTEGER(4) $STATUS &lt;BR /&gt;    ! --------------------------- &lt;BR /&gt;    ! Re-initialise BSTR pointer: &lt;BR /&gt;    $BSTR_Name = 0 &lt;BR /&gt;    ! -------------------- &lt;BR /&gt;    $VPTR = $OBJECT ! Interface Function Table &lt;BR /&gt;    $VPTR = $VTBL + 88 ! Add routine table offset &lt;BR /&gt;    ITSItem_GetName_PTR = $VTBL &lt;BR /&gt;    $RETURN = ITSItem_GetName($OBJECT, $BSTR_Name) &lt;BR /&gt; &lt;BR /&gt;We would greatly appreciate if some solution to this could be incorporated into the next compiler patch.</description>
      <pubDate>Thu, 17 Jan 2002 23:00:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-COM-module-wizard-bug/m-p/980355#M25940</guid>
      <dc:creator>upetersen16</dc:creator>
      <dc:date>2002-01-17T23:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran COM module wizard bug</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-COM-module-wizard-bug/m-p/980356#M25941</link>
      <description>You will need to send a detailed bug report to vf-support@compaq.com  This user forum is not where official requests for support should go.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 18 Jan 2002 01:10:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-COM-module-wizard-bug/m-p/980356#M25941</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2002-01-18T01:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran COM module wizard bug</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-COM-module-wizard-bug/m-p/980357#M25942</link>
      <description>I will do so, but I think that you should let the message stay anyway, because there may be others who encounter the same problem, and it shows them how to make a work-around.</description>
      <pubDate>Fri, 18 Jan 2002 01:58:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-COM-module-wizard-bug/m-p/980357#M25942</guid>
      <dc:creator>upetersen16</dc:creator>
      <dc:date>2002-01-18T01:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran COM module wizard bug</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-COM-module-wizard-bug/m-p/980358#M25943</link>
      <description>I never delete messages, unless they are clearly inappropriate.  I just wanted you to understand that you would not be likely to get a response through the forum - the forum is not where you ask questions of Compaq.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 18 Jan 2002 06:34:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-COM-module-wizard-bug/m-p/980358#M25943</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2002-01-18T06:34:31Z</dc:date>
    </item>
  </channel>
</rss>

