Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9151229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:45:09+00:00 2026-06-17T11:45:09+00:00

First let me say that for my scenario plugins will be loaded when the

  • 0

First let me say that for my scenario plugins will be loaded when the app starts up and won’t be unloaded until the app closes, so it’s totally okay if I can’t unload them after they’re loaded.

So then I know that loading plugins into their own AppDomain will protect my application if a plugin crashes, but assuming the plugins don’t run unmanaged code then can’t I just wrap calls to the plugins in try/catch blocks to avoid having my app crash? Or am I missing something here?

I was trying to use MAF to do this, however I am running into a problem with remoting my objects. That is, none of the available options I have for making them remotable seem very desirable at this point in time. So before I make the switch to a more primitive plugin architecture can anyone tell me if I’m forgetting any other significant reason why I should be loading plugins into a separate AppDomain (or whether I’m mistaken about being able to simply avoid crashes by using try/catch blocks around calls)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:45:11+00:00Added an answer on June 17, 2026 at 11:45 am

    If you don’t need to unload them, you don’t need separate AppDomains.

    AppDomains do not protect the process from being killed in case of unhandled exceptions. new Thread(() => { throw null; }).Start() is still deadly.

    So you need try-catch around plugin entry points and you need them to cooperate (not have threads crash).

    AppDomains are useful, though, if you want to abort some computation. They are a way to invoke Thread.Abort relatively safely, if you unload the entire AppDomain immediately afterwards.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First let me say that I did see this article: How to remove AspxAutoDetectCookieSupport
I can't figure this one out. At first let me say that my cache
Let’s say that my string is: test! I want to get the first character
Let's say that there are two PHP functions. function first() { $keyword = $this->input->post('keyword');
First of all, let me say that I am not a professional coder -
First, let me just say that I have searched for information on this topic;
Let's say I have a form that collects a first name and a last
First, we create classes that represent db entities, ok, done. Let's say we use
First let me say that I know it's better to use the subprocess module,
First let me say that I thought that the way data storage worked in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.