Skip to content
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

64 support?Really? #20

Open
zengfr opened this issue Dec 30, 2019 · 4 comments
Open

64 support?Really? #20

zengfr opened this issue Dec 30, 2019 · 4 comments

Comments

@zengfr
Copy link

zengfr commented Dec 30, 2019

i see in project code
https://github.com/ZenLulz/MemorySharp/blob/deepening-project/src/MemorySharp/Modules/ModuleCore.cs

var module = Process.GetCurrentProcess().Modules.Cast().FirstOrDefault
Process.Modules
Process.MainModule
if in 64 is error "A 32 bit processes cannot access modules of a 64 bit process"

@lolp1
Copy link

lolp1 commented Dec 30, 2019

i see in project code
https://github.com/ZenLulz/MemorySharp/blob/deepening-project/src/MemorySharp/Modules/ModuleCore.cs

var module = Process.GetCurrentProcess().Modules.Cast().FirstOrDefault
Process.Modules
Process.MainModule
if in 64 is error "A 32 bit processes cannot access modules of a 64 bit process"

Did you compile your own project as x64?

@zcanann
Copy link

zcanann commented Dec 30, 2019

Hey I'm familiar with this problem -- see my answer on stackoverflow: https://stackoverflow.com/questions/36431220/getting-a-list-of-dlls-currently-loaded-in-a-process-c-sharp/41402293#41402293

Process.Modules() is not a good solution

Edit: Also what lolp1 said, your program needs to be x64 too

@zengfr
Copy link
Author

zengfr commented Dec 30, 2019

i see in project code
https://github.com/ZenLulz/MemorySharp/blob/deepening-project/src/MemorySharp/Modules/ModuleCore.cs
var module = Process.GetCurrentProcess().Modules.Cast().FirstOrDefault
Process.Modules
Process.MainModule
if in 64 is error "A 32 bit processes cannot access modules of a 64 bit process"

Did you compile your own project as x64?

yes platform target " x64" ."x86"","anycpu" ,select x64.

@lolp1
Copy link

lolp1 commented Dec 30, 2019

i see in project code
https://github.com/ZenLulz/MemorySharp/blob/deepening-project/src/MemorySharp/Modules/ModuleCore.cs
var module = Process.GetCurrentProcess().Modules.Cast().FirstOrDefault
Process.Modules
Process.MainModule
if in 64 is error "A 32 bit processes cannot access modules of a 64 bit process"

Did you compile your own project as x64?

yes platform target " x64" ."x86"","anycpu" ,select x64.

Seems to work fine for me. Make sure you are using a x86 process compile (or x64) and enumerating the process modules of a compatible architecture. Though no idea what this issue has to do with MemorySharp for.

System.Diagnostics.Process.GetCurrentProcess().Modules.MainModule is a .net library function and not memorysharp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants