解除事件时检测到FatalExecutionEngineError [英] FatalExecutionEngineError Detected when unhooking event

查看:2466
本文介绍了解除事件时检测到FatalExecutionEngineError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发客户端/服务器应用程序作为我的论文的一部分,并选择使用 SocketAsyncEventArgs 来获得网络操作方面的最大性能。今天下午,我决定对应用程序进行一个快速而肮脏的压力测试,创建20个线程,每个线程发送100,000个UDP消息。在应用程序结束之前,以下异常:

I am developing a client/server application as part of my dissertation and have chosen to use SocketAsyncEventArgs to get the maximum amount of performance in terms of network operations. This afternoon I decided to run a quick and dirty stress test of the application creating 20 threads and sending 100,000 UDP messages per thread. Near the end of the application the following exception:

我如何找到异常的原因?或者任何身体有一个想法,为什么它在一个看似随机的地方堕落?

How do I go about finding the cause of the exception? Or does any body have an idea why it's falling over at a seemingly random place?

我可以重新生产大部分时间相信,并乐意提供代码,如果

I can re-produce most of the time I believe and am happy to provide code if necessary.

更新:

我在.Net版本4.0上运行完全相同的代码,没有错误。据我所知,这似乎是.Net 4.5 / Compliers / Jit的一个问题。任何关于如何缩小异常的想法将不胜感激。

I have run the exact same code on .Net version 4.0 without error. It seems to be an issue with .Net 4.5/Compliers/Jit as far as I can tell. Any ideas on how to narrow down the exception would be greatly appreciated.

推荐答案

只有在调试时才会发生?我看到一个类似的情况,只有在x86上调试x86(不是任何类型)时,我才会收到这些错误。

Does it only occur when debugging? I have seen a similar case, where I would get these errors only when debugging x86(not any type) on x86.

这篇关于解除事件时检测到FatalExecutionEngineError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆