Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

DEALLOCATE Problems

Intel_C_Intel
Employee
567 Views
CVF6.6C Windows XP Pro
When running from the debugger, some of my DEALLOCATE statements are giving me heap errors (debug asserts) e.g.:
HEAP: Invalid Address specified to RtlValidateHeap( 003F0000, 03A3E0A0 )
Is this important?
0 Kudos
4 Replies
Steven_L_Intel1
Employee
567 Views
Maybe. Is this when the program exits? The MSVC debug library doesn't deal well with the way CVF does memory allocation.
0 Kudos
Intel_C_Intel
Employee
567 Views
Steve,
Its when I execute (some of) the deallocate statements. I have some allocatable UDTs in a MODULE...I allocate them at the start of a model run and DEALLOCATE them afterwards.
The error the debugger throws up can be 'Ignore'd and it doesn't seem to cause any problems, it's just a little annoying having to process it all the time when debugging.
Dan
0 Kudos
Steven_L_Intel1
Employee
567 Views
It could be a sign that you are writing to memory outside the bounds of what was allocated.
0 Kudos
Intel_C_Intel
Employee
567 Views
Probably was something like that...
I found some coding errors (cut'n'paste ...ssshhhhh!)...fixed the errors and the problem disappeared...
Cheers
0 Kudos
Reply