FatalExecutionEngineError Detected while unhooking an event
I am developing a client / server application as part of my thesis and decided to use it SocketAsyncEventArgs
to get the best performance in terms of network operations. This afternoon I decided to do a quick and dirty stress test of an application creating 20 threads and sending 100,000 UDP messages per thread. At the end of the application, the following exception:
How can I find the reason for the exception? Or does any body have an idea why it falls into a seemingly random place?
I can re-produce most of the time I believe in, and I'm happy to provide code if needed.
Update:
I ran the same code on .Net version 4.0 with no errors. As far as I can tell, this is an issue with .Net 4.5 / Compliers / Jit. Any ideas on how to narrow down the exception would be greatly appreciated.
source to share