bruuil Posted February 20, 2005 Share Posted February 20, 2005 (edited) While my script was running I got something that sort of said, "Quitting auto-it to prevent stack overflow Code: Sleep(750)" And i want to prevent this from happening as i want to run my script overnight. Help please. I frequently jump between a Pause-like-function during running my script. Andther related Qyestion, would my virtual memory or RAM have something to do with this? I hog lots of RAM on the app. that i am using during running this script. Edit: found this: see the --------> =========== FAQ 15. What are the current technical limits of AutoIt v3? Here are details of the current technical limits of AutoIt. Please note that some of the limits are theoretical and you may run into performance or memory related problems before you reach the actual limit. Maximum length of a single script line: 4,095 Maximum string length: 2,147,483,647 characters Number range (floating point): 1.7E308 to 1.7E+308 with 15-digit precision Number range (integers): 64-bit signed integer Hexadecimal numbers: 32-bit signed integer (0x80000000 to 0x7FFFFFFF) Arrays: A maximum of 64 dimensions and/or a total of 16 million elements -------->Maximum depth of recursive function calls: 384 levels Edited February 20, 2005 by bruuil Link to comment Share on other sites More sharing options...
therks Posted February 20, 2005 Share Posted February 20, 2005 Just out of curiousity, what is your application doing all this time that would eat up RAM? My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
bruuil Posted February 20, 2005 Author Share Posted February 20, 2005 Ok, occured again. " AutoIT Error Sleep(X) Error: Recursion level has been exceeded - AutoIt will quit to prevent stack overflow. " Link to comment Share on other sites More sharing options...
sugi Posted February 20, 2005 Share Posted February 20, 2005 You're simply using to many (more than 384) levels of recursion in your script. You need to restructure your script. Post it, if need help with that. Link to comment Share on other sites More sharing options...
bruuil Posted February 21, 2005 Author Share Posted February 21, 2005 You're simply using to many (more than 384) levels of recursion in your script.You need to restructure your script. Post it, if need help with that.<{POST_SNAPBACK}>I need clarification as to what 1 level of recursion is. And what 2 levels are. Is two levels like a loop occuring twice? example in C, for( i=0 ; i<2 ; i++) {}The "recursion limit" in the FAQ means i can't do infinite loops, right? I mean, that's why i'm getting errors, because we i can't do a real infinite loop. is that right? Link to comment Share on other sites More sharing options...
sPeziFisH Posted February 21, 2005 Share Posted February 21, 2005 (edited) the limit concerns recursive functions, not 'normal' loops.A recursive function deals with values which are calculated a level/step deeper - those need to be evaluated before they can be used.So,yes, you're right, one level is one loop of where the variable is evaluated. Edited February 21, 2005 by sPeziFisH Link to comment Share on other sites More sharing options...
bruuil Posted February 21, 2005 Author Share Posted February 21, 2005 the limit concerns recursive functions, not 'normal' loops.A recursive function deals with values which are calculated a level/step deeper - those need to be evaluated before they can be used.So,yes, you're right, one level is one loop of where the variable is evaluated.<{POST_SNAPBACK}>Duh, recursion. like a function of a function of a function. I'm calling too many functions inside of functions! Thanks, emphasizing the recursion reminded me of the definition of recursion! now, only to figure out how to reset the recursion... by giving a return value? yes... i'll ponder a while.... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now