.Net 6预览版6-进程由于未处理的异常-DivideByZeroException而终止



我已经针对.Net 6编译了一个solid/stabel解决方案,它编译得很好,没有错误也没有警告,我可以操作主表单的设计器部分,但当我启动它时,我收到:

CoreCLR Version: 6.0.21.35212
.NET Version: 6.0.0-preview.6.21352.12
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DivideByZeroException: Attempted to divide by zero.
at System.Math.DivRem(Int64 a, Int64 b, Int64& result) in System.Private.CoreLib.dll:token 0x600046a+0x0
at System.Drawing.ImageAnimator.ImageInfo.AdvanceAnimationBy(Int64 milliseconds) in System.Drawing.Common.dll:token 0x6000bed+0x31
at System.Drawing.ImageAnimator.AnimateImages() in System.Drawing.Common.dll:token 0x60002e0+0x3d
at System.Threading.Thread.StartHelper.Callback(Object state) in System.Private.CoreLib.dll:token 0x600288d+0x0
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6002a2d+0x40
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in System.Private.CoreLib.dll:token 0x6002a2d+0x80
at System.Threading.Thread.StartCallback() in System.Private.CoreLib.dll:token 0x600280f+0xe

我没有任何";"除法";在代码中,我无法调试,因为错误似乎是dotnet类的一部分。

你能帮我吗?我只是想预测一下从.Net Core 5到.Net Core 6的移植。

这是Core 6.0 P6中的一个错误(回归(。在gitub中打开:dotnet/运行时-动画Gif-除以零#55972

非常感谢吉米对的帮助

相关内容

最新更新