You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 14, 2018. It is now read-only.
In the observeDo(double secs) method of Region class, there is a call Observing.addRunningObserver(this); to add the current region to the runningObservers list. But when the observeDo method ends (i.e. Running observer ends), there SHOULD be a call to remove the Region from the runningObservers list (such as Observing.removeRunningObserver(this)) otherwise the memory consumption is increasing as more and more regions gets added to the runningObservers list there by causing Out of Memory exceptions.
I believe the simple fix would be to add Observing.removeRunningObserver(this) at the very end of the observeDo method.
The text was updated successfully, but these errors were encountered:
In the observeDo(double secs) method of Region class, there is a call Observing.addRunningObserver(this); to add the current region to the runningObservers list. But when the observeDo method ends (i.e. Running observer ends), there SHOULD be a call to remove the Region from the runningObservers list (such as Observing.removeRunningObserver(this)) otherwise the memory consumption is increasing as more and more regions gets added to the runningObservers list there by causing Out of Memory exceptions.
I believe the simple fix would be to add Observing.removeRunningObserver(this) at the very end of the observeDo method.
The text was updated successfully, but these errors were encountered: