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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:32:25+00:00 2026-05-24T05:32:25+00:00

I have a C# WinForms application, that has a WebBrowser control, which loads an

  • 0

I have a C# WinForms application, that has a WebBrowser control, which loads an html page in which is embedded a 3rd-party ActiveX object, which plays IPTV video. The Active X supplied by Exterity. I have also tried the VLC ActiveX control, which was even more unreliable, with the same symptoms. Same behavior on both XP and Win7.

Intermittently the whole WinForms app exits. I already handle the ThreadException and UnhandledExcetion events thus:

[STAThread]
static void Main(string[] args)
{
    //set up global exception handling
    Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);
    Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
    AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

These events do not fire before the app exits; and believe me they do work, because they’ve been in place for a few years now, and have fired many times catching other errors (e.g. timeout database connection) (at which point i restart the whole app)! I see no entries in Windows Event View. My exe process just disappears.

I’ve been reading up on AppDomains, and wondering whether i can put the WebBrowser control in a separate one to the main program/Form; any advice appreciated.

Or are there other ways i can handle, what i presume is, an exception that is going unhandled all the way to the top, at which point the process exits.

  • 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-24T05:32:26+00:00Added an answer on May 24, 2026 at 5:32 am

    Trying to catch and ignore Access Violations is a recipe for introducing memory corruption that can corrupt your application’s data or settings. You’d be better off figuring out why the ActiveX control is crashing (e.g. use WinDBG) and addressing that.

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

Sidebar

Related Questions

I have a C# WinForms application that has a WebBrowser control inside of it.
I have a TreeView control in my WinForms .NET application that has multiple levels
i have found that WebBrowser control (both Winforms and WPF) has certain javascript constructs
I have a .net WinForms 2.0 application that has an image library of about
I have a WinForms application (VS 2008, .NET 3.5) that has a form with
i've made a C# winforms application. Now i have a form which has lots
I have a winForm panel that has a flash ative x control embedded in
i have a winforms applicatoin that has a lot of implementations of IOrderDataLoader. Other
I have a winforms application that normally is at about 2-4% CPU. We are
I have C# winforms application that needs to start an external exe from time

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.