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 6599121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:26:57+00:00 2026-05-25T18:26:57+00:00

I am attempting to sandbox potentially malicious code by executing it within a MAF

  • 0

I am attempting to sandbox potentially malicious code by executing it within a MAF plugin launched in its own process:

    var x = token.Activate<Ix>(new AddInProcess(), AddInSecurityLevel.Internet);

This seems to work well except that when handling a StackOverflowException a dialog is shown: “AddInProcess.exe has stopped working”. This makes it very hard to test

    [TestMethod]
    public void TestStackOverflow() {
        var host = new Host(Environment.CurrentDirectory
            + "/../../../build/pipeline");
        host.Run("foo");
        host.Tick();
        Thread.Sleep(1000);
        host.Monitors.Count.Should().Be(0);
        host.Shutdown();
    }

If I click the “close” button before the Sleep expires, the test succeeds, otherwise it fails. This indicates that the process does not exit until the “close” button is pressed. Given I am expecting the process to terminate, how can I make sure it does so without raising this dialog? I have tried setting my OS to “never check for solutions” but the dialog still comes up. Setting it to “automatically check for solutions” avoids the dialog but takes up to ten seconds which is not desirable… and I would rather avoid an OS setting.

AddInProcess.exe has stopped working

  • 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-05-25T18:26:58+00:00Added an answer on May 25, 2026 at 6:26 pm

    You can call SetErrorMode somewhere inside the addin process like so:

        [Flags]
        enum ErrorModes : uint {
            SYSTEM_DEFAULT = 0x0,
            SEM_FAILCRITICALERRORS = 0x0001,
            SEM_NOALIGNMENTFAULTEXCEPT = 0x0004,
            SEM_NOGPFAULTERRORBOX = 0x0002,
            SEM_NOOPENFILEERRORBOX = 0x8000
        }
    
        [DllImport( "kernel32.dll" )]
        static extern ErrorModes SetErrorMode( ErrorModes uMode );
    
        var em = SetErrorMode( 0 );
        SetErrorMode( em | ErrorModes.SEM_NOGPFAULTERRORBOX | ErrorModes.SEM_FAILCRITICALERRORS | ErrorModes.SEM_NOOPENFILEERRORBOX );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Attempting to implement a poor man's test of whether a process is still running
When attempting to understand how a SQL statement is executing, it is sometimes recommended
Attempting to generics-ify some legacy code, I'm stuck. I have a ParentObject which wraps
Attempting to compile the following code under Qt SDK 4.7.4 for Desktop - MinGW
Attempting to create a filter select to find schedules with coursedates within a given
At this url - http://thespacebetweenthewords.org/sandbox/ I am attempting to cycle through arrays of words
Attempting to follow the directions as specified on http://code.google.com/p/gears/wiki/BuildingGearsForWindows my attempts are failing at
Attempting regex on a HTML file with the following code: <body style=><p class=Normal style=direction:ltr;unicode-bidi:normal;><span
Attempting to insert an escape character into a table results in a warning. For
Attempting to print out a list of values from 2 different variables that are

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.