---
title: "VerifyError: Error #1024: 发生堆栈下溢"
author: "cuixuxucui"
date: "2011-08-26T16:14:55Z"
tags: []
categories: ["Web前端"]
slug: "verifyerror-error-1024"
draft: false
lastmod: "2011-08-26T16:14:55Z"
id: 1158857
url: "https://smartblack.iteye.com/blog/1158857"
---

今天出现了奇怪的问题，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](http://baldscone.com/?p=574)

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

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

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