<?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 Viewing pointer-based array within VS.NET IDE in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Viewing-pointer-based-array-within-VS-NET-IDE/m-p/827153#M50657</link>
    <description>We have a serious problem on being able to view contents of the pointer-based arrays using VS.NET 2003 debugger and Visual Fortran v8.1. This was possible within VS6 IDE with both Compaq Visual Fortran 6.6 and Intel Fotran v7.1.&lt;BR /&gt;&lt;BR /&gt;Also, invoking "View Array" on a pointer-based array in the debug session crashes VS.NET 2003 completely!&lt;BR /&gt;&lt;BR /&gt;Here is the simple file to demonstrate what I am talking about. Create a solution in VS.NET 2003 and step through the debugger. Apply "Quick Watch" to ARRAY and you will not see its members. Apply "View Array" on it, and it will crash the IDE. Try "Quick Watch" within Visual Studio 6 IDE (with either CVF6 or IVF7) and it will show contents of the ARRAY variable in the LOOP procedure.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROGRAM TEST&lt;BR /&gt;&lt;BR /&gt;C Testing Intel compilers for debugging pointer-based arrays&lt;BR /&gt;&lt;BR /&gt;CALL ALLOC&lt;BR /&gt;CALL LOOP&lt;BR /&gt;&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;C This subroutine allocates memory for a pointer-based array&lt;BR /&gt;SUBROUTINE ALLOC&lt;BR /&gt;&lt;BR /&gt;C This section would normally be in an include file, but is pasted her for convenience&lt;BR /&gt;INTEGER NMAX&lt;BR /&gt;INTEGER ARRAY(NMAX) ! dynamic array&lt;BR /&gt;POINTER (PARRAY,ARRAY)&lt;BR /&gt;COMMON /I_ARRAY/ NMAX, PARRAY&lt;BR /&gt;C End of sections from an include file&lt;BR /&gt;&lt;BR /&gt;C Dynamically allocate memory&lt;BR /&gt;NMAX = 10&lt;BR /&gt;PARRAY=MALLOC(NMAX*4)&lt;BR /&gt;&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;C This subroutine manipulate elements in the pointer-based array&lt;BR /&gt;SUBROUTINE LOOP&lt;BR /&gt;&lt;BR /&gt;C This section would normally be in an include file, but is pasted her for convenience&lt;BR /&gt;INTEGER NMAX&lt;BR /&gt;INTEGER ARRAY(NMAX) ! dynamic array&lt;BR /&gt;POINTER (PARRAY,ARRAY)&lt;BR /&gt;COMMON /I_ARRAY/ NMAX, PARRAY&lt;BR /&gt;C End of sections from an include file&lt;BR /&gt;&lt;BR /&gt;INTEGER N ! number of elements&lt;BR /&gt;&lt;BR /&gt;C Elements of ARRAY should be visible in a debugger, for example using Quick Watch&lt;BR /&gt;C They are visible in Visual Studio 6 IDE (with Intel Fortran 7)&lt;BR /&gt;C They are NOT visible in Visual Studio .NET 2003 IDE (with Intel Fortran 8)&lt;BR /&gt;C Furthermore, "View Array" command on .NET 2003 IDE completely crashes the IDE!&lt;BR /&gt;DO N=1,NMAX&lt;BR /&gt;ARRAY(N)=N*N&lt;BR /&gt;ENDDO&lt;BR /&gt;&lt;BR /&gt;DO N=1,NMAX&lt;BR /&gt;WRITE(6,*) ARRAY(N)&lt;BR /&gt;ENDDO&lt;BR /&gt;&lt;BR /&gt;END</description>
    <pubDate>Tue, 12 Apr 2005 20:06:32 GMT</pubDate>
    <dc:creator>eezvmt</dc:creator>
    <dc:date>2005-04-12T20:06:32Z</dc:date>
    <item>
      <title>Viewing pointer-based array within VS.NET IDE</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Viewing-pointer-based-array-within-VS-NET-IDE/m-p/827153#M50657</link>
      <description>We have a serious problem on being able to view contents of the pointer-based arrays using VS.NET 2003 debugger and Visual Fortran v8.1. This was possible within VS6 IDE with both Compaq Visual Fortran 6.6 and Intel Fotran v7.1.&lt;BR /&gt;&lt;BR /&gt;Also, invoking "View Array" on a pointer-based array in the debug session crashes VS.NET 2003 completely!&lt;BR /&gt;&lt;BR /&gt;Here is the simple file to demonstrate what I am talking about. Create a solution in VS.NET 2003 and step through the debugger. Apply "Quick Watch" to ARRAY and you will not see its members. Apply "View Array" on it, and it will crash the IDE. Try "Quick Watch" within Visual Studio 6 IDE (with either CVF6 or IVF7) and it will show contents of the ARRAY variable in the LOOP procedure.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROGRAM TEST&lt;BR /&gt;&lt;BR /&gt;C Testing Intel compilers for debugging pointer-based arrays&lt;BR /&gt;&lt;BR /&gt;CALL ALLOC&lt;BR /&gt;CALL LOOP&lt;BR /&gt;&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;C This subroutine allocates memory for a pointer-based array&lt;BR /&gt;SUBROUTINE ALLOC&lt;BR /&gt;&lt;BR /&gt;C This section would normally be in an include file, but is pasted her for convenience&lt;BR /&gt;INTEGER NMAX&lt;BR /&gt;INTEGER ARRAY(NMAX) ! dynamic array&lt;BR /&gt;POINTER (PARRAY,ARRAY)&lt;BR /&gt;COMMON /I_ARRAY/ NMAX, PARRAY&lt;BR /&gt;C End of sections from an include file&lt;BR /&gt;&lt;BR /&gt;C Dynamically allocate memory&lt;BR /&gt;NMAX = 10&lt;BR /&gt;PARRAY=MALLOC(NMAX*4)&lt;BR /&gt;&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;C This subroutine manipulate elements in the pointer-based array&lt;BR /&gt;SUBROUTINE LOOP&lt;BR /&gt;&lt;BR /&gt;C This section would normally be in an include file, but is pasted her for convenience&lt;BR /&gt;INTEGER NMAX&lt;BR /&gt;INTEGER ARRAY(NMAX) ! dynamic array&lt;BR /&gt;POINTER (PARRAY,ARRAY)&lt;BR /&gt;COMMON /I_ARRAY/ NMAX, PARRAY&lt;BR /&gt;C End of sections from an include file&lt;BR /&gt;&lt;BR /&gt;INTEGER N ! number of elements&lt;BR /&gt;&lt;BR /&gt;C Elements of ARRAY should be visible in a debugger, for example using Quick Watch&lt;BR /&gt;C They are visible in Visual Studio 6 IDE (with Intel Fortran 7)&lt;BR /&gt;C They are NOT visible in Visual Studio .NET 2003 IDE (with Intel Fortran 8)&lt;BR /&gt;C Furthermore, "View Array" command on .NET 2003 IDE completely crashes the IDE!&lt;BR /&gt;DO N=1,NMAX&lt;BR /&gt;ARRAY(N)=N*N&lt;BR /&gt;ENDDO&lt;BR /&gt;&lt;BR /&gt;DO N=1,NMAX&lt;BR /&gt;WRITE(6,*) ARRAY(N)&lt;BR /&gt;ENDDO&lt;BR /&gt;&lt;BR /&gt;END</description>
      <pubDate>Tue, 12 Apr 2005 20:06:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Viewing-pointer-based-array-within-VS-NET-IDE/m-p/827153#M50657</guid>
      <dc:creator>eezvmt</dc:creator>
      <dc:date>2005-04-12T20:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing pointer-based array within VS.NET IDE</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Viewing-pointer-based-array-within-VS-NET-IDE/m-p/827154#M50658</link>
      <description>&lt;DIV&gt;This must be the week for "View Array" issues. See &lt;A href="http://softwareforums.intel.com/ids/board/message?board.id=5&amp;amp;message.id=12937" target="_blank"&gt;http://softwareforums.intel.com/ids/board/message?board.id=5&amp;amp;message.id=12937&lt;/A&gt;for a discussion on using "View Array" with array components of a derived type.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;We'll work on enhancing the "View Array" functionality to support additional types (or at least fix it so it doesn't crash the IDE when pointer-based arrays are viewed!). Please contact Intel Premier Support if you'd like to track this issue.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Ican't answer the "Quick Watch" part of your question. Maybe Steve will have something to say on this...&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;John&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Apr 2005 00:28:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Viewing-pointer-based-array-within-VS-NET-IDE/m-p/827154#M50658</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2005-04-14T00:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing pointer-based array within VS.NET IDE</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Viewing-pointer-based-array-within-VS-NET-IDE/m-p/827155#M50659</link>
      <description>&lt;DIV&gt;I encourage anyone encountering problems with debugging to report them to Intel Premier Support.&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Apr 2005 00:38:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Viewing-pointer-based-array-within-VS-NET-IDE/m-p/827155#M50659</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-04-14T00:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing pointer-based array within VS.NET IDE</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Viewing-pointer-based-array-within-VS-NET-IDE/m-p/827156#M50660</link>
      <description>Thanks chaps,&lt;BR /&gt;&lt;BR /&gt;I've submitted this issue to Premier and they managed to reproduce the problem of not being able to view pointer-based arrays in the debuger. Hopefully the fix will come soon, as the whole our code is based on dynamically allocated pointer-based arrays and it is a real pain having to switch to Compaq VF every time we need to inspect arrays.&lt;BR /&gt;&lt;BR /&gt;As for the "View Array" bug, they did not manage to reproduce crash. &lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Vlada</description>
      <pubDate>Sat, 16 Apr 2005 00:03:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Viewing-pointer-based-array-within-VS-NET-IDE/m-p/827156#M50660</guid>
      <dc:creator>eezvmt</dc:creator>
      <dc:date>2005-04-16T00:03:13Z</dc:date>
    </item>
  </channel>
</rss>

