Comment 12 for bug 575585

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: Sikuli 0.10 crashes every time on my script

Sorry, for may be misleading you:

Using variables means, that you store references to objects (which are the ones, that consume the memory). As long, as you have a reference stored in a variable, the memory of the referenced object will not be released by the automatic garbage collection.

So what I mean is, if you do not use something like myMatch = find() or myImg = capture(), .... you are never responsible for releasing any memory. But on the other hand you can not do anything.

But since using destroy() does not have any effect, there are no means for us to prevent this increase of memory.

btw: even if you store all your matches in different variables, this could never have the effect we are seeing: a match is an object, that contains 7 numbers (max 50 Bytes).

With this internal memory consumption we are talking about 80 - 100 KBytes with every find operation, that is left behind (findAll() abaut 3 - 5 times more per operation).

So still we have to wait for the developers.