Silverfrost Forums

Welcome to our forums

How to solve - corruption of the heap in f90

21 Jan 2013 11:19 #11430

Hello All,

My main.90 fortran file is not executing completly and it is breaking on following code. which gives following output log. can somebody help me what can I do to solve the trouble.

Error :

HEAP[test_lib_dbg.exe]: Heap block at 08AE2958 modified at 08AE2B2D past requested size of 1cd Windows has triggered a breakpoint in test_lib_dbg.exe.

This may be due to a corruption of the heap, which indicates a bug in test_lib_dbg.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while test_lib_dbg.exe has focus.

main.f90

call formatcomp(FuelDistrib,2,ndMassDscFL,ndMassFL,comp_flags,ZFW_ID,CS_ID)

formatcomp.c

void formatcomp(double * matrix, int *nmat, int *nrow, int *ncol, int * comp_flag, int * idbaseMat, int * idtargetMat)

Detailed Debugg Information In VSS:

            Name                 Value                                Type

	FuelDistrib	     {...}	                           REAL(8) 

	ndMassDscFL	     Undefined variable ndMassDscFL	

	ndMassFL	     Undefined variable ndMassFL

	comp_flags	     {...}	                           INTEGER(4) 

	comp_flags(1)	      2	                                   INTEGER(4) 

	comp_flags(2)	      3	                                   INTEGER(4) 

	ZFW_ID	              Undefined variable ZFW_ID

	CS_ID	              Undefined variable CS_ID	

 		FuelDistrib(1,1,1)	0.000000000000000D+000	REAL(8) 
	FuelDistrib(2,1,1)	0.000000000000000D+000	REAL(8) 
	FuelDistrib(3,1,1)	0.000000000000000D+000	REAL(8) 
       
            ........................................................
            ........................................................

            ........................................................

            ........................................................

            FuelDistrib(6,10,2)	-170.091339111328	REAL(8) 
	FuelDistrib(7,10,2)	398.197937011719	REAL(8) 
	FuelDistrib(8,10,2)	357.680664062500	REAL(8) 
	FuelDistrib(9,10,2)	245.521957397461	REAL(8) 
	FuelDistrib(10,10,2)	18.7959365844727	REAL(8) 


            ........................................................

            ........................................................

            ........................................................
           


            FuelDistrib(33,10,2)	0.000000000000000D+000	REAL(8) 
	FuelDistrib(34,10,2)	0.000000000000000D+000	REAL(8) 
	FuelDistrib(35,10,2)	0.000000000000000D+000	REAL(8) 
	FuelDistrib(36,10,2)	0.000000000000000D+000	REAL(8) 

Note:

I am using fortran code files for C project optimization profiling

I am using these tools:

1)Visual studio 2008

2)Intel Fortran Version 11.1 (Trial)

21 Jan 2013 10:09 #11432

This forum is for Silverfrost FTN95 Fortran. If there is a forum for Intel Fortran then you should post your query there.

Please login to reply.