Failed to write to an IPC Port: The pipe is being closed.

Mar 19, 2009 at 11:36 AM
Edited Mar 19, 2009 at 12:23 PM
When I try to inject my managed hook into multiple processes via RemoteHooking.Inject I get a RemotingException: Failed to write to an IPC Port: The pipe is being closed.

Edit: traced into easyhook and it's failing at
m_Interface.InjectEx in WOW64Bypass.Inject

but the first injected library works perfectly
Mar 19, 2009 at 1:03 PM
Hmm I can't reproduce it with processMonitor... Injecting into multiple processes even with different bitness works perfectly!
Mar 19, 2009 at 10:31 PM
Edited Mar 20, 2009 at 4:13 AM
Everything works fine in XP32 and Windows 7 32 bit, but in Vista x64 SP1 I'm having this problem.  My first instinct was a GAC problem, but it's all cleared out.

edit:  Process Monitor is injecting fine for WOW64 and x64 processes.  argh, this is so frustrating
Mar 26, 2009 at 12:37 AM
I solved the problem for now.  I changed my managed hook and managed injection host to target the x86 platform and I can now inject multiple WOW64 processes again.  I don't have time to look at it more closely right now, but I'll post more details later.