regarding Stack full issue

Hi
I have made a script for fetch the data from site.The problem is that i need 10 lacs data from that site but your screen scraper stops when script reaches 500 records and msg show that stack full as i think its limit is 50 So i will change its limit by using session.setMaxScriptsOnStack(10000);

It works but my script halted as the 1000 records fetched without any warning or error it stops.
I have made script using your script provided in tutorial 2 for shop site using paging.

Please help me how can we fetch required data from that site without breaking script.Also tell me what is the issue of stack full.

Please reply me as soon as possible as my previous query has been unanswered till now.

The only reason you'd get

The only reason you'd get that message is that you're using recursion--probably in your page iteration. You really need to devise an iterative approach.

http://blog.screen-scraper.com/2010/04/15/to-iterate-is-human-to-recurse-divine/

http://blog.screen-scraper.com/2008/07/07/large-data/