cryptStream.FlushFinalBlock() 在 64 位操作系统上杀死我的程序

发布于 2024-10-09 15:40:07 字数 379 浏览 8 评论 0原文

我有一个程序部署在多台 Windows7 32 位机器上。它在所有这些上都完美运行。

我刚刚将其安装在 Windows7 64 位计算机上,执行 cryptStream.FlushFinalBlock() 后立即崩溃,并出现以下错误:

程序 '[2972] Billing.vshost.exe: Managed (v2.0.50727)' 已退出,并显示代码 - 1073740940 (0xc0000374)。

我还尝试在我当前安装的唯一其他操作系统 Vista 64 位上运行它,但我遇到了完全相同的问题。这是在 try 块内,但没有任何内容被捕获。它只是立即失败。 CryptoStream 和 64 位操作系统是否存在已知的兼容性问题,或者可能是其他问题?关于如何排除故障有什么想法吗?

I have a program that is deployed on multiple Windows7 32bit machines. It runs flawlessly on all of them.

I just installed it on a Windows7 64bit machine and it's now crashing immediately after executing cryptStream.FlushFinalBlock() with the following error:

The program '[2972] Billing.vshost.exe: Managed (v2.0.50727)' has exited with code -1073740940 (0xc0000374).

I also tried running it on the only other OS I currently have installed, Vista 64bit, but I get the exact same issue. This is within a try block but nothing gets caught. It just fails immediately. Is there a known compatibility issue with CryptoStream and 64bit OSes or is this probably something else? Any ideas on how to troubleshoot it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甜`诱少女 2024-10-16 15:40:07

我讨厌回答自己的问题,但也许它会在未来帮助别人。

如果您要解密的位数组为空,则在运行 FlushFinalBlock() 时,它将在 64 位操作系统上崩溃。

来源: http://connect.microsoft.com/VisualStudio/feedback/details/330926/cryptostream-flushfinalblock-fatal-on-64-bit-os-if-bytearray-is-null

他们说它有在该框架的未来版本中已关闭并更新,但我在 VS2010 上仍然得到它。

I hate answering my own question, but perhaps it will help someone else out in the future.

If the bit array you're decrypting is null, it will crash on a 64-bit OS when running FlushFinalBlock().

Source: http://connect.microsoft.com/VisualStudio/feedback/details/330926/cryptostream-flushfinalblock-fatal-on-64-bit-os-if-bytearray-is-null

They say it has been closed and updated in a future release of the framework, but I'm on VS2010 and still getting it.

岁月静好 2024-10-16 15:40:07

我在 Framework 2 中遇到了同样的问题

。.NET Runtime version 2.0.50727.5472 - Fatal Execution Engine Error (000007FEF99C5756) (80131506)

我将项目升级到了 Framework 4,它也解决了问题。

I got the same problem while I was in Framework 2.

.NET Runtime version 2.0.50727.5472 - Fatal Execution Engine Error (000007FEF99C5756) (80131506)

I upgraded my project to the framework 4 and it also solved the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文