J
Jon
I'm puzzled..
let's say I have an array of streamwriters. a lot..
'the code is something like
dim sw() as streamwriter
redim sw(10000)
'instantiate
for i as int16 = 0 to 9999
sw(i) = new streamwriter(arrayOfFileName(i))
next
'write to the files
for i as int16 = 0 to 9999
sw(i).write("123 ")
next
I monitor the memory from task manager. I can understand
that memory level drops when I instantiate the
streamwriters.
However, I cannot understand, during the streamwriter
writing to the files, the memory drops with each write.
I tried closing all the streamwriters after the
writing... but the memory is not released. is it waiting
for GC?
Anyone knows how I can free the memory so I don't run out
of memory half-way thru writing the files?
let's say I have an array of streamwriters. a lot..
'the code is something like
dim sw() as streamwriter
redim sw(10000)
'instantiate
for i as int16 = 0 to 9999
sw(i) = new streamwriter(arrayOfFileName(i))
next
'write to the files
for i as int16 = 0 to 9999
sw(i).write("123 ")
next
I monitor the memory from task manager. I can understand
that memory level drops when I instantiate the
streamwriters.
However, I cannot understand, during the streamwriter
writing to the files, the memory drops with each write.
I tried closing all the streamwriters after the
writing... but the memory is not released. is it waiting
for GC?
Anyone knows how I can free the memory so I don't run out
of memory half-way thru writing the files?