ipc client crash lead to server blocked

c++ / delphi package - dll injection and api hooking
Post Reply
develeper
Posts: 6
Joined: Wed Jan 27, 2016 1:23 pm

ipc client crash lead to server blocked

Post by develeper »

Hi, madshi
i use madchook in my project, while the client application crashed, it lead to IPC server blocked, IPC server could not recv other client request messages. other client display it send ipc message successed,but IPC server not recv yet.
madchook version:newest;
OS version:windows 7 english x86
thks very mush.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: ipc client crash lead to server blocked

Post by madshi »

Would it be possible for you to create a little test project which demonstrates/reproduces this specific problem?
develeper
Posts: 6
Joined: Wed Jan 27, 2016 1:23 pm

Re: ipc client crash lead to server blocked

Post by develeper »

i inject my dll into office2010 process, and while the winword.exe is crashed, ipc server is blocked. and then ipc server could not recv other client ipc messages.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: ipc client crash lead to server blocked

Post by madshi »

Ok, but how can I reproduce this problem on my PC, with a test project that I can compile myself?
iconic
Site Admin
Posts: 1065
Joined: Wed Jun 08, 2005 5:08 am

Re: ipc client crash lead to server blocked

Post by iconic »

@developer

Can you paste the code inside your IPC handler? The code has to be 100% thread safe. You might also try testing with handleMessages set to False in case it's True (from within SendIpcMessage). Some apps don't like this (Older versions of Firefox for example)

--Iconic
Post Reply