I got error code -2146233079 on abort when I tried to load runtime
See original GitHub issueThanks for wonderful API for calling managed code from native code. I’m trying to use C# with Java with JNI, DNNE. So, I made some wrapper code for that:
#include "library.h"
JNIEXPORT void JNICALL Java_me_ddayo_minecraftchangaeyeon_JNI_dotnetInit() {
dotnet_init();
}
And also, I made some managed C# code like this:
using System.Runtime.InteropServices;
namespace DNNELib;
public class Exported
{
[UnmanagedCallersOnly(EntryPoint = "dotnet_init")]
public static void Init()
{
}
}
dotnet_init exported fine due I’m able to compile those all.
I got exit code 6 when I call that JNI method. Maybe the wrong place will be part of DNNE because, when I remove dotnet_init(), it works excepted.
I tried to use override.c and I got those error code: 2, -2146233079
I have no idea what this code means.
Thank you!
Issue Analytics
- State:
- Created 9 months ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Error Code: 2146233079
Error Code: 2146233079. The request was aborted: Could not create SSL/TLS secure channel. How can I correct? This thread is locked.
Read more >How to overcome Error#2146233079: Automation error?
It is -2146233079. Which is a managed exception code, 0x80131509, it means InvalidOperationException. You will need to debug it. – Hans Passant.
Read more >Run-time Error -2146233079 (80131509) - Login
“Run-time Error -2146233079 (80131509): Unable to connect to the remote server” While Trying to Upload to HealthVault from ExamWRITER.
Read more >FIX SCCM Update Not Available Issue Error 2146233079
Let's try to fix SCCM update not available issue with error 2146233079. If you cannot see the latest SCCM updates in the console, ......
Read more >Package publishing failed Code -2146233079 Error ...
Summary. The above error occurs while publishing package due to WSUS certificate missing Private key. Symptoms. Failed to publish package Code -2146233079
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dayo05 It seems you are hitting https://github.com/dotnet/runtime/issues/43036. The solution here is to also link against the pthread lib at https://github.com/dayo05/DNNE138/blob/79321691b4f4ae04ccad471084f51ca3d284af49/cpp/CMakeLists.txt#L7.
That line should be updated as follows:
Please let me know if this fixes your issue so I can push on the associated issue in dotnet/runtime.
@apekros I don’t think so, but that could be based on what runtime is being targeted. Are you targeting 5, 6 or 7?