Silverfrost Forums

Welcome to our forums

Values of an Array during run-time

31 Jul 2014 4:45 #14380

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

3 Aug 2014 8:48 #14392

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

3 Aug 2014 1:37 #14393

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).

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
4 Aug 2014 4:04 #14394

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..

4 Aug 2014 8:05 #14395

Are your solutions for .NET or Win32?

4 Aug 2014 8:41 #14397

In .NET

4 Aug 2014 9:09 #14399

Which framework?

4 Aug 2014 9:15 #14400

I am using framework 2.0

5 Aug 2014 6:36 #14402

Hmm, it seems to work for me.. I will have to investigate further.

If you switch to Win32 mode does it work for you?

Please login to reply.