I use TCL/TK 8.3.2 under WINNT 4.0.
For generating filed based checksums I'd to absolve a loop containing an "exec"-command.
When then number of files reaches the limit of some thousand files the script breakes and the TCL-parser is frozen.
To reach that point it's irrelevant, what "*.exe" is called within the loop - take any executable you like, build a loop of some thousand passes and the script will crash. It works both {exec xxxx.exe parameters} and {open "| xxxx.exe parameters"}. The task-manager shows a gentle increasing of memory usage - it seems to me, that ressources were not released after closing the used Shell.
For example the loop
for {set count 10000} {$count > 0} {incr count -1} {set dummy [exec "C:\\WINNT\\system32\\hostname.exe"]}
crashes after about 3000 passes.
Is there a way to void this culminating effect ?
Thanks.
For generating filed based checksums I'd to absolve a loop containing an "exec"-command.
When then number of files reaches the limit of some thousand files the script breakes and the TCL-parser is frozen.
To reach that point it's irrelevant, what "*.exe" is called within the loop - take any executable you like, build a loop of some thousand passes and the script will crash. It works both {exec xxxx.exe parameters} and {open "| xxxx.exe parameters"}. The task-manager shows a gentle increasing of memory usage - it seems to me, that ressources were not released after closing the used Shell.
For example the loop
for {set count 10000} {$count > 0} {incr count -1} {set dummy [exec "C:\\WINNT\\system32\\hostname.exe"]}
crashes after about 3000 passes.
Is there a way to void this culminating effect ?
Thanks.