i can't call demo method,it report: System.AccessViolationException
Charltsing opened this issue · 11 comments
Which version of the library are you using? The prerelease versions have known problems.
Latest version
The latest version has bugs (#34)
You might want to use MemoryModule.NET version 0.1.0 on NuGet instead.
The latest version has bugs (#34)
You might want to use MemoryModule.NET version 0.1.0 on NuGet instead.
i try 0.1.0, but it has the same problem
maybe someting is wrong?
https://github.com/wwh1004/MemoryModule,
MemoryModuleLite
it works fine
It seems like my implementation is getting the wrong address, off by 0x10000 bytes.
I am looking into this, haven't touched this code for quite a long time.
Your example works fine on my new branch (https://github.com/trungnt2910/MemoryModule.NET/tree/dev/trungnt2910/Abstractions), where I wrote the PE loader from scratch.
My old branch was ported from the old MemoryModule C code, and to be honest I don't really understand what it is. The new one was created from scratch using a new design.
The only problem preventing this branch to be merged into master is #34. The approach of hooking TLS functions seems to not work on Windows since Windows does not have a dedicated function for TLS handling, instead Windows applications directly access the segment registers FS and GS.
I do not currently have much time to work on this project, but I would be grateful if you have any suggestions on how to fix this particular issue on the master branch.
I hope to load dll with minimal code, MemoryModuleLite looks good
I am aware of that repo, seems like it requires hooking some low-level thread lifetime functions that I don't understand yet.