Page 1 of 1

onObjectReceived called more times

Posted: 25 Apr 2011, 12:31
by ganapathi
Hi,

now i am having one problem in sfs.. am using sfs pro 1.6.6.

sometimes SFSEvent.onObjectReceived and SFSEvent.onUserVariablesUpdate function will trigger more than one times..

how to solve this issue..


/Ganapathi

Posted: 26 Apr 2011, 06:41
by BigFIsh
It may be due to having multiple event listeners to the same function. Also, it could be caused by your old event listeners not being destroyed by garbage collector. http://stackoverflow.com/questions/2665 ... ialization for more info about weak referenced event listeners.