Open PandaSt0rm opened 5 years ago
Close process, reopen, try to inject, get Injection successful
, but nothing is actually injected at all now
I can't explain the behavior. Sometimes it works, sometimes it doesn't. Pulled the code, debugged, and the debugger isn't indicating anything that would be causing such random issues... 🤷♂
Encountering the same issue now.
I had this issue, fix (For me at least) was to compile my dll with the same version of .NET framework as the game I was injecting it into.
How did you find the version of the game?
So I've come across a rather interesting issue, and I have no idea how to actually resolve it. Essentially I've just been testing injecting into a game process, and it was working fine initially, however after a few loads and unloads I started getting a
mono_class_from_name
error.I've tested with a new project, still getting the same error.
This is the 'loader' class
And what happens when I attempt to inject (same result for either GUI or Console)
Something I have noticed is that if I name the
Load
method asInit
, it """works""" (nothing is actually injected but smi reports success).In fact as I was typing this out it started working again (using
Load
as the class name)Could .NET be caching something, because I was trying to load/unload immediately before, but now DEMO was closed for around 10 minutes before I attempted the same command on the same dll, and it worked :shrug: