-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
trying to add clrtjit.dll into my C# #20
Comments
The library probably uses TLS memory. The Windows TLS memory model is currently NOT supported by MemoryModule.NET, as well as the original MemoryModule project (although binaries compiled using MinGW and uses the POSIX thread model may work on MemoryModule.NET). Why do you want to run a |
well it uses it to execute but if the User doesnt have the net frame installed in should still run in memory right or isnt that possible |
You should try using a .NET Self contained application instead. Or, look at some forks of the original MemoryModule (the C library) that actually supports Windows TLS. These forks uses really dirty tricks that I don't understand myself, and makes your code really unstable. Because, if you don't have a .NET runtime to load MemoryModule.NET.dll in the first place, then how would you even use my library? |
so its not possible then |
im trying to run this without installing netframe work stuff https://github.com/cg10036/Themida-Unpacker-for-.NET |
I have an unmanaged application packaged as a DLL that loads the CLR. Below is the WinDbg output of the application crash. This happens during the process of the unmanaged DLL application trying to load the CLR.
When NOT using this library, my application succeeds and gets past this point to load
This is a little weird since using this library to load a DLL that loads the CLR seems unintuitive, but I'm wondering if there's any way to make this work. |
The problem is displayed clearly in this line. As the TLS index is not initialized properly, any attempts to access thread-local storage will result in a segmentation fault. The CLR is a complex application so I'm not surprised if it uses thread-local variables somewhere. |
Related: #34 I'm keeping this open as there might be other blockers in the future other than TLS. |
hi im trying to add clrjit.dll into my C# to run in memory but it doesnt seem to work properly
The text was updated successfully, but these errors were encountered: