Sorry to put this in again, but I can't implement my program until Stack Overflow at line:0 is resolved.

I have a 'for' function going from 0 to 999, checking for images named 0.gif to 999.gif

An example is in thread 90378 (at bottom)

It works fine apart from if the images are more than 8 apart.
Going from 4.gif to 12.gif the program works fine,
but the 'stack overflow error' occurs going from 4 to 13.gif

Does anyone now how I can overcome this problem???