This project is read-only.


NativeAPI.RhInjectLibrary hangs on injection of multiple libraries


I want to inject multiple libraries for different hooks into the same process. The first DLL is injected just fine, however, injection of the second library hangs at the call to NativeAPI.RhInjectLibrary(). I'm using the latest SVN trunk revision of EasyHook.

The problem is independent of whether the target process is a 32-bit application (using the service helper) or a native 64-bit one. It also doesn't matter whether the injection library is written in C# or C++/CLI.

Is this a known problem? Can I provide you with additional data to analyze the issue?
Closed Mar 21, 2015 at 6:32 AM by spazzarama
Fixed on changeset 75628


spazzarama wrote Dec 4, 2014 at 9:37 AM

I haven't come across this issue before, simply because I've always only had to inject a single dll/assembly. I'll see if I can reproduce locally, if not I may need a sample project.

Crazyphilipp wrote Dec 4, 2014 at 4:47 PM

Thanks for looking into it.

Some additional info: Injecting multiple libraries still works in beta 2.7.5159.0, while 2.7.5292.0 fails with the exception described in issue 25594, so I can't verify if that would still work. The breaking change therefore was introduced in a commit after 2.7.5159.0.

wrote Mar 21, 2015 at 6:23 AM

wrote Mar 21, 2015 at 6:31 AM

Fixed on changeset 75628

wrote Mar 21, 2015 at 6:32 AM

spazzarama wrote Mar 21, 2015 at 6:49 AM

And changeset 75629