-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to use it in C# with and unmanaged dll #99
Comments
That is very easy. Compile this project into a DLL and export a function
In C# you call this with a Byte[] buffer which contains the binary data of the DLL that you want to load to memory:
|
So how to load |
this is a chicken-egg problem eventually |
It is not a chicken-egg problem. It is a nonsese question. |
Translate it to C#! It's quite easy actually, just more than 1000 lines, and I've got it working on Try this: https://github.com/trungnt2910/MemoryModule.NET |
@trungnt2910 Great! But I think the nuget package is unpopular, why embed dll, because developers(at least I am) only wants a |
Embedding managed
But a clean solution is available:
If the process crashes, the OS automatically reclaims all allocated library. No wasted disk space, no file permission headaches!
I am neither Microsoft nor James Newton-King, so I don't expect my packages to get popular quickly, but if it solves some problem, I'll maintain it. |
@trungnt2910 You're right, I forgot the |
Hi ,
I need to use this library in C# to load a unmanaged (C++) dll from memory not from file.
is this possible with this library and if it is please tell me how ?
Thank you.
The text was updated successfully, but these errors were encountered: