Re: Too many open files - why is this?



OK - It looks like we are on to something...

"file channels" does indeed list *all* of the channels - The list is
added to each time the file is opened.

However: It still seems to me as though the file should be closed. The
file close part of the code looks like this...

if {[catch {close $log}]} {
puts "***Error*** Closing ($log) - $logFile"
} else {
puts "Log Closed ($log) - $logFile"
}

....The script always displays the "Log Closed..." message each time the
log is written to. I still don't understand why the file is not
closing.

Regards,
=Adrian=

.



Relevant Pages