I am trying to communicate with the R-installation on my computer and the dll rdotnet needs c#4.6 so I was happy when I read that unity now features that. So I tried loading the dll and it can be recognised and causes no errors. However, when I try to initialise the connection with:
REngine rEngine = REngine.GetInstance();
the editor crashes without any warning. The visual studio debugger mode allowed me to glimpse at the crash location:
Unhandled exception at 0x00007FFE49487423 (ntdll.dll) in Unity.exe: 0xC0000374: A heap has been corrupted (parameters: 0x00007FFE494DF6B0).
I am not sure whether the beta editor produced a log file I can attach (a quick check didn’t show me any).
Can you submit a bug report with this project? We should be able to track down the cause of the crash then. Note that the preview build of the editor does not ship with the bug reporter, so please submit the bug report from another version of Unity, and let me know the bug number. Thanks!
We don’t have .NET 4 support yet in the Unity 5.6 beta. In fact, we’re not planning to release it in 5.6 at all. It will be in an upcoming Unity release, but we’re not yet should which release.
For the moment, you cannot test this fix. However, we’re working on a new preview build of .NET 4 support now - when that is released on this forum section you should be able to confirm that this issue is corrected.