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

Mar 19, 2009 at 10:36 AM
Edited Mar 19, 2009 at 11:23 AM
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 12:03 PM
Hmm I can't reproduce it with processMonitor... Injecting into multiple processes even with different bitness works perfectly!
Mar 19, 2009 at 9:31 PM
Edited Mar 20, 2009 at 3: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 25, 2009 at 11:37 PM
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.