TCC hung

May 20, 2008
Syracuse, NY, USA

At this point TCC is hung, unresponsive and gaining 4KB of working set every few seconds. The variable loop was discovered when it involved %1 but not when it involved %2.


Staff member
May 14, 2008
That's not a variable loop. (It's not a smart thing to do, but it's not a variable loop.) It's also not hung, it's chugging along doing what you told it to do. Eventually it will run out of memory and abort the batch file.

The reason it's not treated as a variable loop is because you're prefixing a string (xxx) each time. A variable loop is recognized by the parser when the substitution is identical to the original argument. Even the DWIM parser would have a hard time saving you from yourself with that syntax.