PDA

View Full Version : DEALLOCATE of Array does not free up all memory, or memory fragmented.


R. T. (Fortran Man)
02-01-2005, 07:02 PM
After DEALLOCATE all the memory used is not available again to the runtime.

After DEALLOCATE the memory available to the runtime is fragmented and large chunks can no longer be ALLOCATEd.

Is there a fix or work around for this problem?

Lahey Support
02-01-2005, 07:08 PM
If you set up an environment variable with the name FLIB_DVT_BUFFER and set it's value to zero, the memory isn't fragmented when it is ALLOCATED/DEALLOCATED.

You can set this variable via the OS or manually from the command prompt when needed.