Search code examples
c#wpfexceptioncrashawesomium

awesomium.dll crashes my WPF application on XP not Windows 7


I have created a WPF app that sometimes crashes with application error, modname = awesomium.dll

I have global catch and try blocks in my app.xaml.cs

    public App()
        : base()
    {
        this.Dispatcher.UnhandledException += OnDispatcherUnhandledException;
        AppDomain currentDomain = AppDomain.CurrentDomain;
        currentDomain.UnhandledException += OnAppDomainUnhandledException;
    }

But the awesomuim.dll error seems to bypass this and crash the app regardless

Do we know how to either stop the random crashes on XP or add an application wide error catcher for Awesomium


Solution

  • I can't recall the exact details, but look at Application.SetUnhandledExceptionMode.