VerifyError: Error #1024: 发生堆栈下溢

今天出现了奇怪的问题,RELEASE版本的背包操作总是报VerifyError: Error #1024: 发生堆栈下溢。具体信息如下:

at view.ui.components.item::BagItemGrid/clear()

at view.ui.role::Panel_role/itemRemove()

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at data.model::RoleItemModel/alterSlotItem()

at net::SgtServerHandler$/G2C_BAG_ALTER()

at Function/http://adobe.com/AS3/2006/builtin::call()

at net::NetHandlerPool$/callHandler()

at net::SgtNetClient/recDataHandler()

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

 

查了半天,在本地开DEBUG,非DEBUG都出不来这个错误,太奇怪了……

后来,查到这样一个错误http://baldscone.com/?p=574

于是怀疑clear方法里某句写法有问题~~

原来是这句调试信息的代码搞怪:gridData && trace("clear slot:" + _gridData.slot);

去掉就OK了,深度原因还不清楚,呵呵

 

你可能感兴趣的:(ActionScript3.0)