<?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 Problem calling CVF DLL from Intel QuickWin in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-calling-CVF-DLL-from-Intel-QuickWin/m-p/845628#M63597</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm upgrading a program from CVF to Intel Fortran. I'm running into a problem calling a DLL that's written in CVF. &lt;/DIV&gt;
&lt;DIV&gt;An obvious solution is to upgrade the DLL to Intel Fortran too, but I don't want to do that right now as &lt;/DIV&gt;
&lt;DIV&gt;there are many otherprograms that call the DLL, some Fortran and some Visual Basic.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;The call into the DLL works fine unless I use the compiler option /QZero. &lt;/DIV&gt;
&lt;DIV&gt;With/QZero I get an access violation. Looking in the debugger disassembly view, when the code tries to call the &lt;/DIV&gt;
&lt;DIV&gt;DLL it actually calls into address 000000. This causes an access violation (naturally enough). &lt;/DIV&gt;
&lt;DIV&gt;Looking at the module window, the DLL hasn't even been loaded. So it doesn't seem to be structure packing or&lt;/DIV&gt;
&lt;DIV&gt;calling conventions or any of the "usual suspects" for this stuff.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Without /QZero everything works fine (the module window shows the DLL has been loaded too).&lt;/DIV&gt;
&lt;DIV&gt;Again I think this rules out structure packing or calling conventions&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;So it seems to me/QZeromight beinterfering with the loading of the DLL?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;The DLL is linked in using an import library and !DEC$IMPORT etc&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;My full compiler options for the Intel program are below. It's a QuickWin&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;/nologo /include:"ReleaseNoHills/" /include:"Release/" /include:".Release/" /include:"incsub" /include:".incsub" /include:".UnifiedIncludes" /define:URBAN /define:NOHILLS /noaltparam /fpscomp:general /warn:declarations /Qsave /align:dcommons /assume:byterecl /Qzero /fpe:0 /fpconstant /iface:cvf /module:"$(INTDIR)/" /object:"$(INTDIR)/" /libs:qwin /c&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks in advance&lt;/DIV&gt;
&lt;DIV&gt;Mark&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 01 Feb 2006 00:16:51 GMT</pubDate>
    <dc:creator>mark_jackson</dc:creator>
    <dc:date>2006-02-01T00:16:51Z</dc:date>
    <item>
      <title>Problem calling CVF DLL from Intel QuickWin</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-calling-CVF-DLL-from-Intel-QuickWin/m-p/845628#M63597</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm upgrading a program from CVF to Intel Fortran. I'm running into a problem calling a DLL that's written in CVF. &lt;/DIV&gt;
&lt;DIV&gt;An obvious solution is to upgrade the DLL to Intel Fortran too, but I don't want to do that right now as &lt;/DIV&gt;
&lt;DIV&gt;there are many otherprograms that call the DLL, some Fortran and some Visual Basic.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;The call into the DLL works fine unless I use the compiler option /QZero. &lt;/DIV&gt;
&lt;DIV&gt;With/QZero I get an access violation. Looking in the debugger disassembly view, when the code tries to call the &lt;/DIV&gt;
&lt;DIV&gt;DLL it actually calls into address 000000. This causes an access violation (naturally enough). &lt;/DIV&gt;
&lt;DIV&gt;Looking at the module window, the DLL hasn't even been loaded. So it doesn't seem to be structure packing or&lt;/DIV&gt;
&lt;DIV&gt;calling conventions or any of the "usual suspects" for this stuff.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Without /QZero everything works fine (the module window shows the DLL has been loaded too).&lt;/DIV&gt;
&lt;DIV&gt;Again I think this rules out structure packing or calling conventions&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;So it seems to me/QZeromight beinterfering with the loading of the DLL?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;The DLL is linked in using an import library and !DEC$IMPORT etc&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;My full compiler options for the Intel program are below. It's a QuickWin&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;/nologo /include:"ReleaseNoHills/" /include:"Release/" /include:".Release/" /include:"incsub" /include:".incsub" /include:".UnifiedIncludes" /define:URBAN /define:NOHILLS /noaltparam /fpscomp:general /warn:declarations /Qsave /align:dcommons /assume:byterecl /Qzero /fpe:0 /fpconstant /iface:cvf /module:"$(INTDIR)/" /object:"$(INTDIR)/" /libs:qwin /c&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks in advance&lt;/DIV&gt;
&lt;DIV&gt;Mark&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Feb 2006 00:16:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-calling-CVF-DLL-from-Intel-QuickWin/m-p/845628#M63597</guid>
      <dc:creator>mark_jackson</dc:creator>
      <dc:date>2006-02-01T00:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calling CVF DLL from Intel QuickWin</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-calling-CVF-DLL-from-Intel-QuickWin/m-p/845629#M63598</link>
      <description>Haven't seen this one before.  Please send a test case to Intel Premier Support.  Offhand, I can't think of what the cause could be.</description>
      <pubDate>Wed, 01 Feb 2006 01:57:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-calling-CVF-DLL-from-Intel-QuickWin/m-p/845629#M63598</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-02-01T01:57:17Z</dc:date>
    </item>
  </channel>
</rss>

