ExecutionEngineException : JIT/AOT error when adding to delegate

Using Unity 4.6.1

My code is crashing with an ExecutionEngineException when I am adding a handler to a delegate event. The delegate’s signature is

public delegate void OnDelegate(string channel,string message);

Its pretty simple with no generics. The delegate and the class in question are located inside a dll, if that has anything to do with it.

My exception is :

Please advise.

first hit in untiy search ( for me, anyway )

1 Like

Thanks found it also. Was like third page for me.