Error when exceeding maxUsers in a room
Posted: 19 Apr 2010, 04:55
Steps to reconstruct the error:
1. set maxUsers property in the Room tag in config.xml to 2;
2. Enter with 2 users to the room - still OK.
3. When entering with the third user, the following error arise.
Error trace:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.smartfoxserver.openspace::OpenSpace/onMapRendered()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.smartfoxserver.openspace.mvc::IsoEngineModel/onMapBuilt()
at com.smartfoxserver.openspace.map::MapManager/onMapGenerationCompleted()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.smartfoxserver.openspace.utils.executor::MultiFrameExecutor/runStep()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
This error is in one of the openspace core classes, not mine, so I've got nothing to fix.
It doesn't matter which browser I'm using or the value I set in maxUsers property. It always act the same on the (maxUsers+1) user.
What is the default behaviour when exceeding that number. Shouldn't a new room be oppened?
1. set maxUsers property in the Room tag in config.xml to 2;
2. Enter with 2 users to the room - still OK.
3. When entering with the third user, the following error arise.
Error trace:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.smartfoxserver.openspace::OpenSpace/onMapRendered()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.smartfoxserver.openspace.mvc::IsoEngineModel/onMapBuilt()
at com.smartfoxserver.openspace.map::MapManager/onMapGenerationCompleted()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.smartfoxserver.openspace.utils.executor::MultiFrameExecutor/runStep()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
This error is in one of the openspace core classes, not mine, so I've got nothing to fix.
It doesn't matter which browser I'm using or the value I set in maxUsers property. It always act the same on the (maxUsers+1) user.
What is the default behaviour when exceeding that number. Shouldn't a new room be oppened?