Comment 9 for bug 1013396

Revision history for this message
RaiMan (raimund-hocke) wrote :

I looked into the sources:

It is not the FindFailed option dialog.

The problem is the ScreenHighLighter (the thing that makes the red frames around the screen when capturing or when using Region.highlight.

The 3 affected methods use the "new Region" in a different way, than the other 2 methods. This is a known inconsistency on the Java level of "new Region" (which is tagged as deprecated) and Region.create(), which makes problems when trying to use the observe feature in Java.

The basic problem is, that with Region.right() a new Screen object is created, though already one exists and hence a new ScreenHighlighter object. On the first glance I cannot see, why these Screen and ScreenHiighlighter objects are not released together with the Region objects.