<?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 Is this a volatile variable problem? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-this-a-volatile-variable-problem/m-p/843399#M61368</link>
    <description>&lt;DIV&gt;Hi all,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I have a large program that works perfectly well in debug mode but fails in release mode. The problem appears to be the closing of a file (on unit 1) but I'm unable to find out where this happens because it doesn't happen in debug mode.Could this be the result ofa volatile variable? I've heard about them but never met one before - how do I go about tracking it down?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Any suggestions?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;With many thanks in advance,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Mike&lt;/DIV&gt;</description>
    <pubDate>Tue, 15 Nov 2005 15:58:28 GMT</pubDate>
    <dc:creator>michael_green</dc:creator>
    <dc:date>2005-11-15T15:58:28Z</dc:date>
    <item>
      <title>Is this a volatile variable problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-this-a-volatile-variable-problem/m-p/843399#M61368</link>
      <description>&lt;DIV&gt;Hi all,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I have a large program that works perfectly well in debug mode but fails in release mode. The problem appears to be the closing of a file (on unit 1) but I'm unable to find out where this happens because it doesn't happen in debug mode.Could this be the result ofa volatile variable? I've heard about them but never met one before - how do I go about tracking it down?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Any suggestions?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;With many thanks in advance,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Mike&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Nov 2005 15:58:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-this-a-volatile-variable-problem/m-p/843399#M61368</guid>
      <dc:creator>michael_green</dc:creator>
      <dc:date>2005-11-15T15:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is this a volatile variable problem?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-this-a-volatile-variable-problem/m-p/843400#M61369</link>
      <description>Actually, this could be a problem of &lt;B&gt;uninitialized&lt;/B&gt; variable -- "volatile" is something entirely different (VOLATILE keyword declares that the variable is changeable outside of compiler's view, like a shared-memory mapped variable or a port value, and prevents certain optimization).&lt;BR /&gt;&lt;BR /&gt;You &lt;B&gt;can&lt;/B&gt; debug the release configuration, if you set "debug info" to "full" and rebuild. The stepping through the code can be kind of funny, and many variables are unreadable as they're stored in registers, but you still can have basic control what happens. &lt;BR /&gt;&lt;BR /&gt;It can also happen, though, that it's not reproducible even in this case. It could help, though, to try to reproduce the exact conditions -- insert a call to DebugBreak() (use DFWIN) somewhere in your startup code, then &lt;B&gt;run&lt;/B&gt; the program without debugger (Ctrl+F5). DebugBreak statement will cause the just-in-time debugger to attach itself to the process.&lt;BR /&gt;&lt;BR /&gt;If that still doesn't help reproduce the problem, well...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.xeffor.com" target="_blank"&gt;Jugoslav&lt;/A&gt;</description>
      <pubDate>Tue, 15 Nov 2005 16:12:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-this-a-volatile-variable-problem/m-p/843400#M61369</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2005-11-15T16:12:31Z</dc:date>
    </item>
  </channel>
</rss>

