Detecting application hangs with ActiveX controls in .Net -


i working on upgrades screen scraping application. using activex control scrape screens out of ibm mainframe. mainframe program hangs , crashes activex control causing our application crash. don't have access mainframe or activex source code. not going write our own active x control.

what bast way encapsulate activex control detect application hangs control can kill process , restart code?

should create 2 separate applications? 1 controller checks on other , kills/restarts process when hangs?

would have on separate app domains? possible have 2 programs communicate each other if on separate app domains?

you can start executable system.diagnostics.process.start(). returns process object responding property can use check periodically if process still active.

you'll need 2 separate applications though. , application you're monitoring needs have main window because monitoring works checking if application still processes messages main-window messagequeue. same way windows knows add "not responding" window-title


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -