Menu

#20 FatalExecutionEngineError when running BattleRunnerSample with .Net framework 4+

none
open
None
1
2016-05-26
2013-04-18
Anonymous
No

When attempting to change the target framework from .Net 3.5 Framework to 4 or 4.5 and running the project, the following error is given:

FatalExecutionEngineError was detected
Message: The runtime has encountered a fatal error. The address of the error was at 0x782cc394, on thread 0x11e4. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

I think this is a compatibility problem with the JNI4NET library. To reproduce this error open the BattleRunnerSample in VisualStudio, open the properties page of the project and change the target framework from .Net 3.5 to 4.0 or 4.5. Building the project will succeed but running it will produce the error.

Discussion

  • Flemming N. Larsen

    Thanks for reporting this issue here. I will try to reproduce the issue and see what can be done to fix it - if it turns out that jni4net should have a problem with the newest .NET frameworks.
    For now, my advice is to stick to the .NET 3.5 Framework when using the .NET plugin for Robocode.

     
  • Flemming N. Larsen

    I can confirm that you are right that the BattleRunnerSample application for .NET does not work when run under .NET 4.0 or newer.

    I have created a bug report for it here: https://sourceforge.net/p/robocode/bugs/359/

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.