您的位置:首页 > 其它

System.ArgumentOutOfRangeException: 容量超出了最大容量

2016-12-09 00:00 549 查看
出错日志

参数名: capacity

System.Text.StringBuilder.ReplaceBufferAnsiInternal(SByte* newBuffer, Int32 newLength)

Sunisoft.IrisSkin.x61467fe65a98f20c.GetWindowText(IntPtr hWnd, StringBuilder lpString, Int32 nMaxCount)

Sunisoft.IrisSkin.xb052c904ac95dc43..ctor(IntPtr handle, SkinEngine engine)

Sunisoft.IrisSkin.SkinEngine.DoAddDlg(IntPtr handle, Boolean isManul)

Sunisoft.IrisSkin.SkinEngine.FnHookProc(Int32 nCode, IntPtr wParam, IntPtr lParam)

System.Windows.Forms.SafeNativeMethods.MessageBox(HandleRef hWnd, String text, String caption, Int32 type)

System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton
defaultButton, MessageBoxOptions options, Boolean showHelp)
System.Windows.Forms.MessageBox.Show(String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)

MessageBox.Show 容量超出了最大容量。参数名: capacity

       if (MessageBox.Show("确实要删除所选择的数据吗?", "删除提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)

这句代码出错是因为在MessageBox.Show()的第二个参数“删除提示”字数过长,把“提示”去掉就ok了;这句代码会出错是因为使用了IrisSkin4.dll或IrisSkin2.dll皮肤插件导致的。

但是64位Windows系统测试这句代码没有问题,只在32位Windows系统出现问题。

        
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: