asp.net - How to retrieve PID(Process ID) of a com application created by net assembly -


i calling third party com object asp.net invoke executable follows

b = new mybw.baan4class();

at given time there muliple instances invoked asp processes. how can pid of b can 'kill' without disturbing(killing) others..

without knowing more details com object using don't think there's great way associate exe launches , object creating.

with said delegate responsibility of creating these objects centralized location (wcf service running in singleinstance mode maybe) can associate object created exe instantiating new object , waiting exe launched. when exe has been launched can associate object created exe launched. use wmi detect when new exe has been launched.

it's going pretty impossible in asp.net since multiple users instantiating these objects @ same time. running race conditions if tried here.

here similar question: how determine association between vb6 app , exe instanced createobject()


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -