cryptStream.FlushFinalBlock() 在 64 位操作系统上杀死我的程序
我有一个程序部署在多台 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我讨厌回答自己的问题,但也许它会在未来帮助别人。
如果您要解密的位数组为空,则在运行 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.
我在 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.