← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #203844]: Issues with Endless Looping

 

Question #203844 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203844

    Status: Open => Answered

RaiMan proposed the following answer:
Your problem does not get resolved by asking new questions on the same
stuff !!!

I already told you with your other question, that this kind of self
calling (recursive) might work for a while, but in the end will crash
because available memory is exhausted.

every time you call main() again while having come from main() (might be
with some intermediate calls to other functions) leaves the resources
main() allocated before in memory and allocates a new set of resources,
that are never freed again.

Python/Jython and Java do not do any optimization on recursive calling.

So look again at my recommendations with the other question and make
your workflow non-recursive (which is rather easy and normal
programming/scripting style).

The fact that something has to be repeated does not mean automatically
that you need a recursion.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.