View previous topic :: View next topic |
Author |
Message |
narayanamoorthy_k
Joined: 19 Jun 2014 Posts: 142 Location: Chennai, IN
|
Posted: Thu Jul 31, 2014 5:45 am Post subject: Values of an Array during run-time |
|
|
Hello
Good Morning.
I have observed a peculiar behavior in FTN95 Express relating to Array contents during the Debug mode.
I store the values in an array using TYPE structures. The values of the array are correctly showing up while printing, but it is showing some strange values during the Single-step (F11) Debug mode. Due to which, I am not able to do the debug process correctly and I am forced to print the intermittent messages to check. It should not be the case based on my experience and I don't know whether am I missing something in FTN95 Express.
Need help to see the correct values of arrays during Debug Mode.
Thank you _________________ Thanks and Regards
Moorthy |
|
Back to top |
|
|
narayanamoorthy_k
Joined: 19 Jun 2014 Posts: 142 Location: Chennai, IN
|
Posted: Sun Aug 03, 2014 9:48 am Post subject: |
|
|
Hello,
Any clues on this. Is it a bug in FTN95 Express .,1 edition. I use FTN95 compiler 7.0.0.0 It goes through in debug mode, but not showing up the exact content values of an array during debug mode during run-time. But while I print the values of the arrays, it is correct printing them in every iterations during debug mode. This makes me terrible, Any help to resolve this?
Thanks in advance _________________ Thanks and Regards
Moorthy |
|
Back to top |
|
|
mecej4
Joined: 31 Oct 2006 Posts: 1886
|
Posted: Sun Aug 03, 2014 2:37 pm Post subject: |
|
|
The variables are displayed correctly inside the Salford debugger, SDBG, after compilation with the 7.0 compiler, using the test program given below. This indicates that the problems you described may have more to do with the Visual Studio integration rather than the compiler package itself. I do not have the FTN95 Express package installed, but I can see the problem when I use the Visual Studio 2012 debugger (with the Salford Personal Edition integrations installed).
Code: | program xdbg
type :: mtyp
integer :: i
real :: x
character(len=1) :: c
end type mtyp
type(mtyp) :: v(5)
integer :: i
do i=1,5
v(i)%i = 2*i-1
v(i)%x = sqrt(i*3.14159)
v(i)%c = char(96+i)
end do
do i=1,5
write(*,10)i,v(i)%i,v(i)%x,v(i)%c
end do
10 format(1x,2i10,2x,F10.2,2x,A1)
end program xdbg
|
|
|
Back to top |
|
|
narayanamoorthy_k
Joined: 19 Jun 2014 Posts: 142 Location: Chennai, IN
|
Posted: Mon Aug 04, 2014 5:04 am Post subject: |
|
|
Thanks mecej4. In that case, It should be visual studio (express edition front end) bug as you would also see Visual studio 2012. I don't have here the Visual Studio installed, but directly using FTN95 Express with its visual studio environment. I request Paul can clarify.
Paul: Any help on this this? Is this problem reported earlier.. You might have some way out to resolve this.. _________________ Thanks and Regards
Moorthy |
|
Back to top |
|
|
Robert
Joined: 29 Nov 2006 Posts: 445 Location: Manchester
|
Posted: Mon Aug 04, 2014 9:05 am Post subject: |
|
|
Are your solutions for .NET or Win32? |
|
Back to top |
|
|
narayanamoorthy_k
Joined: 19 Jun 2014 Posts: 142 Location: Chennai, IN
|
Posted: Mon Aug 04, 2014 9:41 am Post subject: |
|
|
In .NET _________________ Thanks and Regards
Moorthy |
|
Back to top |
|
|
Robert
Joined: 29 Nov 2006 Posts: 445 Location: Manchester
|
Posted: Mon Aug 04, 2014 10:09 am Post subject: |
|
|
Which framework? |
|
Back to top |
|
|
narayanamoorthy_k
Joined: 19 Jun 2014 Posts: 142 Location: Chennai, IN
|
Posted: Mon Aug 04, 2014 10:15 am Post subject: |
|
|
I am using framework 2.0 _________________ Thanks and Regards
Moorthy |
|
Back to top |
|
|
Robert
Joined: 29 Nov 2006 Posts: 445 Location: Manchester
|
Posted: Tue Aug 05, 2014 7:36 am Post subject: |
|
|
Hmm, it seems to work for me.. I will have to investigate further.
If you switch to Win32 mode does it work for you? |
|
Back to top |
|
|
|