AjainAhan
Joined: 18 Jan 2013 Posts: 1
|
Posted: Mon Jan 21, 2013 12:19 pm Post subject: How to solve - corruption of the heap in f90 |
|
|
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(
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(
FuelDistrib(2,1,1) 0.000000000000000D+000 REAL(
FuelDistrib(3,1,1) 0.000000000000000D+000 REAL(
........................................................
........................................................
........................................................
........................................................
FuelDistrib(6,10,2) -170.091339111328 REAL(
FuelDistrib(7,10,2) 398.197937011719 REAL(
FuelDistrib(8,10,2) 357.680664062500 REAL(
FuelDistrib(9,10,2) 245.521957397461 REAL(
FuelDistrib(10,10,2) 18.7959365844727 REAL(
........................................................
........................................................
........................................................
FuelDistrib(33,10,2) 0.000000000000000D+000 REAL(
FuelDistrib(34,10,2) 0.000000000000000D+000 REAL(
FuelDistrib(35,10,2) 0.000000000000000D+000 REAL(
FuelDistrib(36,10,2) 0.000000000000000D+000 REAL(
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) |
|