Silverfrost Forums

Welcome to our forums

unknown type 17

14 Jul 2011 3:32 #8569

In debug mode without executing any commands sdbg.exe reports the following message:

unknown type 17

What is the meaning of this warning? Later in the program the debugger report:

Error 416, Bad request for stack memory

Are the messages perhaps somehow related. The code I am trying was mainly developed using gfortran where it works without any problems.

Some advice or some hints will be really very helpful.

The first code lines are as follows:

program FEMP
    use xml_data_assem_t
    use FEMPtype
    use FEMPutil
    implicit none
    integer  :: void
    type(file_type) :: fls
    type(fpl_type) :: fpl
    type(age_type) :: age
!
    integer :: t,tn
    double precision :: pi,slave_angle

    interface
        integer function fn_draw_polygons(fls)
            use FEMPtype
            type(file_type),intent(inout) :: fls
        end function
    end interface
    interface
        subroutine initial_mesh(fls,fpl)
            use FEMPtype
            implicit none
            type(file_type),intent(in) :: fls
            type(fpl_type),intent(out) :: fpl
        end subroutine initial_mesh
    end interface
    interface
        subroutine makeneigbors(fpl)
            use FEMPtype
            implicit none
            type(fpl_type),intent(inout) :: fpl
        end subroutine makeneigbors
    end interface
    interface
        subroutine save_fpl(fls,fpl,dtheta,rr)
            use FEMPtype
            IMPLICIT NONE
            type(file_type),intent(in) :: fls
            type(fpl_type),intent(in) :: fpl
            double precision,intent(in) :: dtheta,rr
        end subroutine save_fpl
    end interface
    interface
        subroutine bld_adp_all(fpl,t,tn)
            use FEMPtype
            implicit none
            type(fpl_type),intent(inout) :: fpl
            integer :: t,tn
        end subroutine bld_adp_all
    end interface
16 Jul 2011 7:31 #8583

This seems like a very unknown message. Not even Google has an answer to unknown type 17. This message occurs even before any line of code is executed. Therefore I conclude that the answer to this should be at Silverfrost.

17 Jul 2011 8:32 #8589

Type 17 is unknown -- what more can be said 😃

Type 17 is actually 'array', so clearly shouldn't be unknown. Has it just started happening?

It shouldn't affect the running of your program, it is just the debugger getting a bit confused and it may not display a type element correctly.

3 Aug 2011 8:56 #8699

This seems to appear only when using derived types. However, until the bad request for stack memory the program runs fine.

It is a bit of an unsatisfying result since the debugger should help to detect errors in the code. In a previous thread the bebugger needed some debugging 😦 . As long as it is possible to understand a message produced by the debugger the is no problem - then the message should at leat be in the help.

When working on Windows my preferred compiler is FTN95. However, on Linux we use gfortran. The code should be working with both compilers. This seems to be a problem some times.

4 Aug 2011 7:29 #8734

That is why I like FTN95 so much:

The exact same code runs without problems using gfortran. Compiling the code using FTN95 errors are detected! Writing 'clean' code is much easier using FTN95. I have experience this in the past as well. Rearranging the code a bit and tracing the error with the debubbger the above mentioned messages are fixed as well.

I can only verify the results presented on http://www.polyhedron.com/pb05-win32-diagnose0html. However, when it comes to speed (very important for number cruching) FTN95 is slower than gfortran.

Please login to reply.