<?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 To Steve Lionel, Intel, in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Character-String-Length-Problems/m-p/1055151#M116196</link>
    <description>&lt;P&gt;To Steve Lionel, Intel,&lt;/P&gt;

&lt;P&gt;Thank you for reply.&amp;nbsp; I think all these character string length issues are related because they generate virtually the same Stack Frame error message when running under debug:&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;nbsp;msvcr100d.dll!memcpy(unsigned char * dst, unsigned char * src, unsigned long count)&amp;nbsp; Line 101&amp;nbsp;Asm&lt;/P&gt;

&lt;P&gt;The most basic occurence of this issue&amp;nbsp;is for example,&amp;nbsp;at the begining of a subroutine&amp;nbsp;in the CVF code when it simply passes&amp;nbsp;a program name into a pre-defined character string.&amp;nbsp; So at the top of the routine it has:&lt;/P&gt;

&lt;P&gt;CHARACTER*9 PROG_NAME&lt;/P&gt;

&lt;P&gt;PROG_NAME = 'PWII HIAT'&lt;/P&gt;

&lt;P&gt;Stepping through the CVF code under Intel debug gives the above error message when line PROG_NAME = 'PWII HIAT' is 'executed'.&lt;/P&gt;

&lt;P&gt;If I increase the&amp;nbsp;PROG_NAME string length to *10 then&amp;nbsp;the name is correctly stored in PROG_NAME, and no error message produced.&lt;/P&gt;

&lt;P&gt;Hope this helps to illustrate the problem - the CVF code has many&amp;nbsp;similar cases of this, so grateful of any suggestions.&lt;/P&gt;

&lt;P&gt;Thank you, Gerald Reeves.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2015 10:24:56 GMT</pubDate>
    <dc:creator>Gerald_R_1</dc:creator>
    <dc:date>2015-05-07T10:24:56Z</dc:date>
    <item>
      <title>Character String Length Problems</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Character-String-Length-Problems/m-p/1055149#M116194</link>
      <description>&lt;P&gt;To the Intel Forum,&lt;/P&gt;

&lt;P&gt;I'm converting a Compaq Fortran code to compile and run under Intel Fortran XE 2013 SP1 (M/S Windows 7)&amp;nbsp; However, I seem to be having some very basic Character String length problems when using the debug tool under Intel Fortran 2013. For example:&lt;/P&gt;

&lt;P&gt;CHARACTER ACS*5, NAME*10&lt;/P&gt;

&lt;P&gt;ACS = 'Pitch'&lt;/P&gt;

&lt;P&gt;give an error, or even inserting a character from one string into another&amp;nbsp;with I=3,&lt;/P&gt;

&lt;P&gt;WFILE(1:1) = NAME(I:I)&lt;/P&gt;

&lt;P&gt;also generates an error under Debug step through.&lt;/P&gt;

&lt;P&gt;Increasing the string length of ACS to *6 removes the problem.&amp;nbsp; Any ideas on what may be causing this 'length problem'&amp;nbsp;? (&amp;nbsp;compiler settings&amp;nbsp;?).&lt;/P&gt;

&lt;P&gt;Thank you, Gerald Reeves.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 16:57:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Character-String-Length-Problems/m-p/1055149#M116194</guid>
      <dc:creator>Gerald_R_1</dc:creator>
      <dc:date>2015-05-06T16:57:52Z</dc:date>
    </item>
    <item>
      <title>It is not clear to me, from</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Character-String-Length-Problems/m-p/1055150#M116195</link>
      <description>&lt;P&gt;It is not clear to me, from your post, what the error says or what your program is doing. Perhaps you can come up with a small program that demonstrates all the issues, and you can also tell us the complete and exact text of the error messages?&lt;/P&gt;

&lt;P&gt;The only difference from CVF I can think of is that Intel Fortran does better error checking of lengths of character dummy arguments.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2015 17:18:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Character-String-Length-Problems/m-p/1055150#M116195</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-05-06T17:18:02Z</dc:date>
    </item>
    <item>
      <title>To Steve Lionel, Intel,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Character-String-Length-Problems/m-p/1055151#M116196</link>
      <description>&lt;P&gt;To Steve Lionel, Intel,&lt;/P&gt;

&lt;P&gt;Thank you for reply.&amp;nbsp; I think all these character string length issues are related because they generate virtually the same Stack Frame error message when running under debug:&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;nbsp;msvcr100d.dll!memcpy(unsigned char * dst, unsigned char * src, unsigned long count)&amp;nbsp; Line 101&amp;nbsp;Asm&lt;/P&gt;

&lt;P&gt;The most basic occurence of this issue&amp;nbsp;is for example,&amp;nbsp;at the begining of a subroutine&amp;nbsp;in the CVF code when it simply passes&amp;nbsp;a program name into a pre-defined character string.&amp;nbsp; So at the top of the routine it has:&lt;/P&gt;

&lt;P&gt;CHARACTER*9 PROG_NAME&lt;/P&gt;

&lt;P&gt;PROG_NAME = 'PWII HIAT'&lt;/P&gt;

&lt;P&gt;Stepping through the CVF code under Intel debug gives the above error message when line PROG_NAME = 'PWII HIAT' is 'executed'.&lt;/P&gt;

&lt;P&gt;If I increase the&amp;nbsp;PROG_NAME string length to *10 then&amp;nbsp;the name is correctly stored in PROG_NAME, and no error message produced.&lt;/P&gt;

&lt;P&gt;Hope this helps to illustrate the problem - the CVF code has many&amp;nbsp;similar cases of this, so grateful of any suggestions.&lt;/P&gt;

&lt;P&gt;Thank you, Gerald Reeves.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 10:24:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Character-String-Length-Problems/m-p/1055151#M116196</guid>
      <dc:creator>Gerald_R_1</dc:creator>
      <dc:date>2015-05-07T10:24:56Z</dc:date>
    </item>
    <item>
      <title>That's a bit more helpful. It</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Character-String-Length-Problems/m-p/1055152#M116197</link>
      <description>&lt;P&gt;That's a bit more helpful. It suggests that your program is corrupting data due to coding errors. In general it's inappropriate to declare character dummy arguments with explicit lengths if you're passing from Fortran - you should use CHARACTER(*) instead. Please enable Fortran &amp;gt; Diagnostics &amp;gt; Check Routine Interfaces and Fortran &amp;gt; Run-time &amp;gt; Check Array and String Bounds, then rebuild and run and see if you get different errors.&lt;/P&gt;

&lt;P&gt;If this doesn't help, we'll need to see a buildable and runnable example that shows the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 12:44:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Character-String-Length-Problems/m-p/1055152#M116197</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-05-07T12:44:46Z</dc:date>
    </item>
  </channel>
</rss>

