Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to isolate some controls in a separate process in WPF?

For example, in Firefox, there is a plugin-container.exe which isolates Adobe Flash, Apple Quicktime or Microsoft Silverlight plugins so that when they crash, the browser does not crash.

Is it possible to achieve something similar in WPF? Like loading some user-customized controls (analogous to plugins in browser) in a separate process, and make them start their threads (like click handler etc) in that process so that when their code throws an exception, the host application doesn't crash?

like image 1000
Louis Rhys Avatar asked Feb 24 '23 11:02

Louis Rhys


1 Answers

Assuming I have understood your question properly I think this might be considered as a duplicate of

Create a WPF "control" that is run in an external process

The canonical term for this would be "out of process" so you will havemore success if you use this when searching for further information.

These links should get you started

Hosting WPF UI cross-thread and cross-process

Hosting Out-of-process ActiveX control in WPF

AppDomain Isolated WPF Add-Ins

like image 51
Moog Avatar answered May 04 '23 17:05

Moog