Out of memory

I have script which processes Quark files to PS but there appears to be a limit to the number of files it can process.

It crashed with an ‘Out of Memory’ error after about 650 files. The application memory settings are 50Mb!

Is there a limit to the number of items it a list?