日期:2014-05-20  浏览次数:20886 次

RDLC 打印时,程序崩溃。

求解:
报表预览,准备打印,弹出选择打印机对话框,选择一个打印机并按下打印按扭后,程序马上崩溃、进程自动结束、窗口关闭,偶尔弹出"内存不能为Read..."系统错误提示,其它应用程序能正常打印。
.net framework 程序和reportviewer已完全布署。
起初目标框架以.net framework 2.0 + reportviewer 2005 编译程序出现该问题, 
后来偿试更改为.net framework 4.0 + reportviewer 2010 编译仍然出现该问题。


帐号暂时只有这么多分,感激不尽。




事件1-----------------------------------------------------------------------------------------

Framework 版本: v4.0.30319 说明: 由于 .NET 运行时中出现内部错误,进程终止 位于 IP 791DA31E 

(79140000),退出代码为 




事件2-----------------------------------------------------------------------------------------

应用程序: MainApp.exe
Framework 版本: v4.0.30319
说明: 由于未经处理的异常,进程终止。
异常信息: System.AccessViolationException
堆栈:
   在 System.Windows.Forms.PrintControllerWithStatusDialog+BackgroundThread.Run()
   在 System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   在 System.Threading.ExecutionContext.runTryCode(System.Object)
   在 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup

(TryCode, CleanupCode, System.Object)
   在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, 

System.Threading.ContextCallback, System.Object)
   在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, 

System.Threading.ContextCallback, System.Object, Boolean)
   在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, 

System.Threading.ContextCallback, System.Object)
   在 System.Threading.ThreadHelper.ThreadStart()

------解决方案--------------------
引用:
重装系统,重装驱动... 问题仍然存在...

悲剧的问题 要不要帮你转到图标区呢?