"Unexpected error" while typing certain characters in the Emulator Application Path field.

Issue #744 resolved
Mike van der Lee created an issue

While in the Add/Edit Emulator dialog and typing certain characters like " > < and possibly others, in the Emulator Application Path field, an error is raised:

System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.IO.Path.GetFileName(String path) at (EmulatorForm , Object , EventArgs ) at LaunchBox.Forms.EmulatorForm.field_Changed(Object sender, EventArgs e) at System.Windows.Forms.Control.OnTextChanged(EventArgs e) at System.Windows.Forms.TextBoxBase.WmReflectCommand(Message& m) at System.Windows.Forms.TextBox.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

After pressing Ok and re-opening the dialog again, another one is raised:

System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.IO.Path.GetFileName(String path) at (EmulatorForm , Object , EventArgs ) at LaunchBox.Forms.EmulatorForm.field_Changed(Object sender, EventArgs e) at System.Windows.Forms.Control.OnTextChanged(EventArgs e) at System.Windows.Forms.Control.set_Text(String value) at System.Windows.Forms.TextBoxBase.set_Text(String value) at System.Windows.Forms.TextBox.set_Text(String value) at (EmulatorForm ) at LaunchBox.Forms.EmulatorForm.LoadValues() at LaunchBox.Forms.EmulatorForm.EmulatorForm_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Take care.

Comments (2)

  1. Brad Cheyne

    That's because these characters are not allowed in Windows, but that error should be handled a bit better. Thank you for finding it.

  2. Log in to comment