求教大家一个问题

local GuiLayer = class(“GuiLayer”, function()
return cc.LayerColor:create(cc.c4b(0, 0, 0, 180))
end)

function GuiLayer:ctor()
self.tmpTimeGuide = 0
local function aa(dt)
self.tmpTimeGuide = self.tmpTimeGuide + 1
if self.tmpTimeGuide % 100 == 0 then
print(“马上要出错了”)
self:removeFromParent(true) – 每次运行到这里都会出错,不知道是什么原因
end
end
self:scheduleUpdate(aa)
end

return GuiLayer

请问为什么运行到那里会出错呢?