c# - Hosting WPF plugin cross-process issue -


i use approach similar http://www.codeproject.com/articles/516431/baktun-shell-hosting-wpf-child-windows-in-another host wpf applications (plugins) in process via addinhost (derived hwndhost) class.

this works fine far long don't suspend child process. if parent process frozen. reason parent/child processes sharing same (synchronous) input queue: good or evil - setparent() win32 api between different processes

i have tried decouple 2 processes before suspend plugin process setparent win32 function plugin decoupled host-application not rid of problem:

public static void decouple(hwndhost hwndhost) {   setparent(hwndhost.handle, intptr.zero); } 

any ideas missing here separate 2 processes don't share same input queue longer?

for me solution use attachthreadinput win32 api function detach plugin hwndhost input queue


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -