Framework 版本: v4.0.30319 说明: 由于未经处理的异常,进程终止。
代码片段如下:
form = new FrmShow(new Bitmap(@"C:\\1.bmp"));
form.Owner = this;
if (form.ShowDialog(this) == DialogResult.OK)
{......}
调试正常,打包安装到别的电脑上,调用ShowDialog时就报未处理异常,程序未响应关掉。
异常信息:
Framework 版本: v4.0.30319 说明: 由于未经处理的异常,进程终止。
异常信息: System.AccessViolationException
堆栈: 在 System.Windows.Forms.UnsafeNativeMethods.TranslateMessage(MSG ByRef)
在 System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
在 System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
在 System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
在 System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
.......