public MainForm() { InitializeComponent(); outputView = new OutputView(this); registersView = new RegisterView(this); displayView = new DisplayView(this); controlView = new ControlView(this); traceView = new TraceView(this); callStackView = new CallStackView(this); stackFrameView = new StackFrameView(this); statusView = new StatusView(this); symbolView = new SymbolView(this); watchView = new WatchView(this); breakPointView = new BreakpointView(this); instructionView = new InstructionView(this); methodView = new MethodView(this); methodParametersView = new MethodParametersView(this); //scriptView = new ScriptView(this); sourceView = new SourceView(this); sourceDataView = new SourceDataView(this); // only useful when debugging this tool launchView = new LaunchView(this); Settings = AppLocationsSettings.GetAppLocations(); Settings.SetValue("Emulator.GDB", true); Settings.SetValue("Emulator.Serial", "TCPServer"); Settings.SetValue("Emulator.Serial.Port", 1250); Settings.SetValue("Emulator.Display", false); GDBPort = 1234; AppDomain.CurrentDomain.DomainUnload += (s, e) => { KillVMProcess(); }; AppDomain.CurrentDomain.ProcessExit += (s, e) => { KillVMProcess(); }; AppDomain.CurrentDomain.UnhandledException += (s, e) => { KillVMProcess(); }; }