超出堆栈空间错误(堆栈溢出错误)

时间:2014-06-03 11:20:26

标签: c# stack-overflow webresource.axd

在我的网站中,我打开一个新窗口,点击页面中的图像链接按钮,然后其他链接按钮工作正常但关闭新打开的窗口当我尝试单击链接按钮时,它会抛出中的Webresource.axd文件中出现堆栈空间错误

function WebForm_SaveScrollPositionSubmit() {
if (__nonMSDOMBrowser) {
    theForm.elements['__SCROLLPOSITIONY'].value = window.pageYOffset;
    theForm.elements['__SCROLLPOSITIONX'].value = window.pageXOffset;
}
else {
    theForm.__SCROLLPOSITIONX.value = WebForm_GetScrollX();
    theForm.__SCROLLPOSITIONY.value = WebForm_GetScrollY();
}
if ((typeof(this.oldSubmit) != "undefined") && (this.oldSubmit != null)) {
    return this.oldSubmit(); // Error thrown here
}
return true;

}

请任何人指出我可能是什么问题。

这是Webresource.axd的屏幕截图

修改this.oldsubmitcode我只获得以下方法

callBaseMethod() = callBaseMethod(a, d, b)
getBaseMethod() = getBaseMethod(a, b)
getBaseType() = getBaseType()
getInterfaces() = getInterfaces()
getName() = getName()
implementsInterface() = implementsInterface(d)
inheritsFrom() = inheritsFrom(b)
initializeBase() = initializeBase(a, b)
isImplementedBy() = isImplementedBy(a)
isInstanceOfType() = isInstanceOfType(a)
registerClass() = registerClass(c, b, d)
registerEnum() = registerEnum(b, c)
registerInterface() = registerInterface(a)
resolveInheritance() = resolveInheritance()

我在此链接中找到Modal dialog boxes Stack Overflow Error,在Internet Explorer中打开多个模式对话框可能会导致堆栈溢出错误

1 个答案:

答案 0 :(得分:1)

可能this.oldSubmit(直接或间接)递归调用WebForm_SaveScrollPositionSubmit。检查this.oldSubmit的值,并确保它引用的函数不是递归调用WebForm_SaveScrollPositionSubmit。

相关问题