Don't do this:
for i = 1 to 10000
Open
call
close
next I
Comments: If you have no shared basic segment, keeps loading program major memory allocation.
Do this:
open
next i