Dimitre Novatchev wrote:
One *cannot know* if a program will terminate -- unless this property has a
strict proof.
This is known as The Halting Problem. The following link has a nice
description of it:
http://www.wikipedia.org/wiki/Halting_problem
On the other hand, the original poster had a program that he knew halted. All
he wanted was some instrumentation to count loop iterations and measure timing.
--
--------------------------
Jeff Kenton
DataPower Technology, Inc.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list