Home | Search | Login | RSS
We have 1073 members and counting!
Next Page


Previous Page

Thread: FMS 3.5 setInterval connections count

Created on: 06/11/12 10:48 AM

Replies: 0


Joined: 04/04/12

Posts: 5

FMS 3.5 setInterval connections count
06/11/12 10:48 AM


Ive created a simple interval:

[some code]

application.games["game_" + id].gameInterval = setInterval(gameCallback, id);

gameCallback = function(id) {
var so = SharedObject.get("game_" + id);
var atime = so.getProperty("time");
atime += 1;

So everybody who is connected to game sharedOBject get notified about time variable change.

Everything works fine, but the problem is that number of shared object conenctions is rising fast, and after some time FMS just freezes. Why thereare so many connectons? Why they are not garbage collected? How to create interval correctly without creating false connections? (im waching the connections number in console shared object tab)


Link | Top | Bottom

Next Page


Previous Page

New Post

Please login to post a response.