30.11. 10:10 stuerzte das Cockpit bei einem Klick ab (0x800F1000, Microsoft.UI.Xaml FailFast) und riss den Echtgeld-Laeufer mit (Job KILL_ON_JOB_CLOSE): Tische ohne Kanal, Zuege bis 29 s spaet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
1.7 KiB
C#
45 lines
1.7 KiB
C#
using Microsoft.UI.Xaml;
|
|
|
|
namespace Pokerfreak.Cockpit;
|
|
|
|
/// <summary>Start: ein Fenster, eine Verbindung zum Server (Kern/Verbindung.cs).</summary>
|
|
public partial class App : Application
|
|
{
|
|
private static App? _laufend;
|
|
private MainWindow? _fenster;
|
|
|
|
/// <summary>Ein zweiter Start wurde hierher gereicht (Programm.cs): das Cockpit nach vorn holen.</summary>
|
|
public static void Aktiviert()
|
|
{
|
|
var f = _laufend?._fenster;
|
|
f?.DispatcherQueue.TryEnqueue(f.Hervorholen);
|
|
}
|
|
|
|
public App()
|
|
{
|
|
InitializeComponent();
|
|
_laufend = this;
|
|
// Ein Absturz hinterlaesst seinen Grund in %APPDATA%\Pokerfreakbsturz.txt (sonst sieht man nur
|
|
// "Microsoft.UI.Xaml.dll" im Ereignisprotokoll).
|
|
// 30.11.: Ein Fehler in der Oberflaeche beendet das Cockpit nicht mehr (Handled). Das Cockpit traegt den
|
|
// Laeufer (Job KILL_ON_JOB_CLOSE): am 30.11. 10:10 riss ein Klick-Fehler (0x800F1000) den Echtgeld-Laeufer mit.
|
|
UnhandledException += (_, e) => { Seiten.Merker.Absturz(e.Exception, behandelt: true); e.Handled = true; };
|
|
AppDomain.CurrentDomain.UnhandledException += (_, e) => { if (e.ExceptionObject is Exception x) Seiten.Merker.Absturz(x); };
|
|
TaskScheduler.UnobservedTaskException += (_, e) => { Seiten.Merker.Absturz(e.Exception, behandelt: true); e.SetObserved(); };
|
|
}
|
|
|
|
protected override void OnLaunched(LaunchActivatedEventArgs args)
|
|
{
|
|
try
|
|
{
|
|
_fenster = new MainWindow(Kern.Adresse.AusBefehlszeile(Environment.GetCommandLineArgs()));
|
|
_fenster.Activate();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Seiten.Merker.Absturz(e);
|
|
throw;
|
|
}
|
|
}
|
|
}
|