Hi, We have a somewhat serious problem with gfortran on x86/mingw32 system:
program test implicit none character(len=10) :: string integer :: m,n do m = 1,1000 do n = 1,10000 write(string,*) 'nice' end do print *,'Check memory and handles and press ENTER...' call flush read(*,*) end do end program test Start the task manager and run the small program above to see memory and windows handle usage (1 / internal write) to skyrocket. The fortran versions i see this include the latest 4.3 & the mingw 4.2_sjlj versions at least: $ gfortran -v Using built-in specs. Target: i386-pc-mingw32 Configured with: ../trunk/configure --prefix=/mingw --enable-languages=c,fortran --with-gmp=/home/FX/local --with-ld=/mingw/bin/ld --with-as=/mingw/bin/as --disable-werror --enable-bootstrap --enable-threads --disable-nls --build=i386-pc-mingw32 --enable-libgomp --disable-shared Thread model: win32 gcc version 4.3.0 20080127 (experimental) [trunk revision 131883] (GCC) Regards, Juha -- Summary: gfortran internal write leaks windows handles & memory Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jpr at csc dot fi GCC host triplet: i386-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35064