getCurrentRoom() null at extension init (sometimes)

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

overmind
Posts: 26
Joined: 11 May 2008, 08:27

Post by overmind »

it happens rarely NOT at every room creation (1/5000 room creations)
with this extension code:

Code: Select all

var roomId;

function init()
{
	try
	{
		roomId = _server.getCurrentRoom().getId(); 
	}
	catch(e)
	{
		trace("error at as init: " + e);
		return;
	}
} 

function destroy()
{

} 

function handleInternalEvent(ieo)
{
	
}

function handleRequest(cmd, params, user, fromRoom, protocol)
{
	
}
overmind
Posts: 26
Joined: 11 May 2008, 08:27

Post by overmind »

I changed smartfox to 1.6.8 and all errors stopped.

There is no problem i do not need new version, but in case i will need some of newer versions in the future i would like if you have time to check it, if it has to do something with updates.

Server has a little load and i have often "Read queue under heavy load" but it is stable at general and with 1.6.8 there is NO problem nowhere. (if it helps)
Post Reply