Hi;
I have a function that checks memory usage every 20 seconds or so in an app.
Here’s the problem: (I know it can be caused by many different things - I want to rule out duplicate runtime listeners)
The memory usage is constantly increasing. Not really a big deal - however, after playing for about 2 minutes or more it starts to slow the app down.
Is there a way to get the name of the function assigned to the listener - or some identifier other than the “table name” of the listener which looks like Alien language to me?
I am using the code example from this post:
http://forums.coronalabs.com/topic/14982-how-to-check-if-listener-already-exists/
I’m using the following code:
if Runtime._functionListeners.enterFrame then --checking for runtime event listener
for _,func in pairs(Runtime._functionListeners.enterFrame) do
print("RuntimeListeners : ", func) – Is there a way to print out the result in something I can understand? or the name of the function assigned to the runtime listener?
end
end
I want to eliminate the possibility of duplicate listeners in the runtime.
Any help would be greatly appreciated.
Cheers!