Questions tagged [executionengineexception]

34 questions
125
votes
18 answers

Application Crashes With "Internal Error In The .NET Runtime"

We have an application written against .NET 4.0 which over the weekend crashed, putting the following message into the event log: Application: PnrRetrieverService.exe Framework Version: v4.0.30319 Description: The process was terminated due to…
ALEXintlsos
  • 1,809
  • 4
  • 17
  • 17
13
votes
2 answers

All selectors unrecognised when invoking Objective-C methods using the LLVM ExecutionEngine

I'm running on OSX, using Clang to compile some Obj-C code that uses the OSX Cocoa classes, and I'm trying to run the result with the LLVM JIT compiler. I'm using the latest bleeding-edge version of LLVM/Clang. There are no problems compiling or…
jules72
  • 131
  • 3
12
votes
1 answer

Why does concurrent GC sometimes cause ExecutionEngineException (per MSDN)?

According to MSDN, there is a "tip" stating that a .NET application running under heavy load with concurrent garbage collection (either or unspecified, since it's the default behavior) may throw an…
Nick Jones
  • 4,395
  • 6
  • 33
  • 44
6
votes
2 answers

How to find source of System.ExecutionEngineException Exception

I have a very large application. And my application throw System.ExecutionEngineException sometimes and I cant find source of this Exception. Is there any way find it?
Murat
  • 803
  • 4
  • 15
  • 27
6
votes
2 answers

How to cause .NET 4 to throw ExecutionEngineException?

We have a situation where our application sometimes raises an ExecutionEngineException. I thought that when it happens, the application should crash, but it does not crash. And even if the event viewer claims that the application was terminated - it…
mark
  • 59,016
  • 79
  • 296
  • 580
4
votes
1 answer

Fatal Execution Engine Error in Managed C# code

I have experienced Access Violation Exceptions and Fatal Execution Engine Error (it seems to be the same error) in managed code in C#. I have narrowed it down to the following snippet. Am I missing something? I thought it should not be possible to…
jptrxff
  • 69
  • 3
4
votes
1 answer

Windows Phone 8.1 C# app: critical crash (ExecutionEngineException) only on real device in release mode

Imagine the following struct type: public struct Token : IDictionary { public readonly object Value; public Token(string str) { Value = str; } public Token(IDictionary dict) { Value = dict; } /*…
4
votes
1 answer

Create AOT checklist for IOS (ExecutionEngineException)

First of all, I've posted a similar question on answers.unity.com and after realized it's affect a way broader community... so please did not take this as a crossposting. Deploying C# code to IOS recently became a nightmare for me. All started with…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
3
votes
1 answer

An unhandled exception of type 'System.ExecutionEngineException' occurred in XXX.exe

I have a DLL file that is written in C++. I am try to use in C++ DLL in my c# code. C++ method is called correctly but it gives error after process completed. Exception Details: completed.System.ExecutionEngineException was unhandled …
mmpatel009
  • 921
  • 4
  • 11
  • 25
2
votes
2 answers

ExecutionEngineException occurs while raising PropertyChanged event with weak handlers in C#

I'm trying to raise a PropertyChanged event that is being listened to by a weak event handler (via PropertyChangedEventManager). For some reason I'm getting an ExecutionEngineException when I raise the event. My event raising code looks…
2
votes
1 answer

WPF application crashes when item from Start Menu is dragged over it

I've encountered a strange problem. When an item from the Windows start menu is dragged over the application, it crashes. However, if I drag a file from Explorer over it, it is handled correctly (the dragged item displays a red circle with a line…
2
votes
1 answer

ocaml llvm kaleidoscope tutorial "Unbound module LlvmExecutionEngine"

I switched to my mac and no longer have this issue but have a similar one. OCaml llvm "Unbound module ExecutionEngine" I'm trying to get this to work: https://github.com/llvm-mirror/llvm/tree/master/examples/OCaml-Kaleidoscope/Chapter7 from this…
Bren
  • 3,516
  • 11
  • 41
  • 73
2
votes
2 answers

CLR crash when code change during debugging ("Edit and Continue") is followed by Debug.SetNextStatement

During Visual Studio 2015 debugging session (breakpoint hit), if I change almost any code and select any of Continue, Step Into, Step Over (, etc.), commands, I immediately get ExecutionEngineException followed by CLR crash. This seems to be…
miroxlav
  • 11,796
  • 5
  • 58
  • 99
2
votes
1 answer

Why does Marshal.PtrToStructure with nested arrays throw an ExecutionEngineException?

I am trying to convert a byte[] to a struct that contains an array of a struct that contains an array. Something like this: [StructLayout(LayoutKind.Sequential, Pack = 4)] public struct Util_VersionType { [MarshalAs(UnmanagedType.ByValArray,…
2
votes
1 answer

ExecutionEngineException only when debugging

I have C# code that throws ExecutionEngineException only when I debug it. When I just run it from Visual Studio without debugging (press the "Start without debugging") button, this piece of code works OK. But when I debug it from Visual Studio it…
1
2 3