Normal
Hello,I believe I found a bug when specific hardware is plugged on COM Port.A device like a serial printer.This is not a new feature like RenameTVRecorded program, only a bug correction.* Before :Reproduced each time configuration.exe is launched1/ Exception Form :2/ Entire exception text :[code]************** Texte de l'exception **************JH.CommBase.CommPortException: Bad com settings à JH.CommBase.CommBase.ThrowException(String reason) à JH.CommBase.CommBase.Open() à MediaPortal.SerialIR.SerialUIR.SetPort(String CommPort) à MediaPortal.Configuration.Sections.RemoteSerialUIR.CommPortCombo_SelectedIndexChanged(Object sender, EventArgs e) à System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) à System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value) à System.Windows.Forms.ComboBox.set_Text(String value) à MediaPortal.Configuration.Sections.RemoteSerialUIR.LoadSettings() à MediaPortal.Configuration.SettingsForm.LoadSectionSettings(TreeNode currentNode) à MediaPortal.Configuration.SettingsForm.SettingsForm_Load(Object sender, EventArgs e) à System.Windows.Forms.Form.OnLoad(EventArgs e) à System.Windows.Forms.Form.OnCreateControl() à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) à System.Windows.Forms.Control.CreateControl() à System.Windows.Forms.Control.WmShowWindow(Message& m) à System.Windows.Forms.Control.WndProc(Message& m) à System.Windows.Forms.ScrollableControl.WndProc(Message& m) à System.Windows.Forms.ContainerControl.WndProc(Message& m) à System.Windows.Forms.Form.WmShowWindow(Message& m) à System.Windows.Forms.Form.WndProc(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)[/code]3/ A config Form wich use Com informations :* After :1/ No exception Form.2/ Configuration.log :2008-08-18 09:25:18.590720 [ERROR][Config Main]: CommBase: Bad com settings3/ The config Form wich use COM informations :We can see information that COM1 port is not available, now.I modified a little bit Open() method in CommBase class.I attached modified class.Could replace older CommBase.cs located in \MediaPortal\Core\SerialUIR\ folder.Only if you want, of course.
Hello,
I believe I found a bug when specific hardware is plugged on COM Port.
A device like a serial printer.
This is not a new feature like RenameTVRecorded program, only a bug correction.
* Before :
Reproduced each time configuration.exe is launched
1/ Exception Form :
2/ Entire exception text :
[code]************** Texte de l'exception **************
JH.CommBase.CommPortException: Bad com settings
à JH.CommBase.CommBase.ThrowException(String reason)
à JH.CommBase.CommBase.Open()
à MediaPortal.SerialIR.SerialUIR.SetPort(String CommPort)
à MediaPortal.Configuration.Sections.RemoteSerialUIR.CommPortCombo_SelectedIndexChanged(Object sender, EventArgs e)
à System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
à System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
à System.Windows.Forms.ComboBox.set_Text(String value)
à MediaPortal.Configuration.Sections.RemoteSerialUIR.LoadSettings()
à MediaPortal.Configuration.SettingsForm.LoadSectionSettings(TreeNode currentNode)
à MediaPortal.Configuration.SettingsForm.SettingsForm_Load(Object sender, EventArgs e)
à System.Windows.Forms.Form.OnLoad(EventArgs e)
à System.Windows.Forms.Form.OnCreateControl()
à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
à System.Windows.Forms.Control.CreateControl()
à System.Windows.Forms.Control.WmShowWindow(Message& m)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ScrollableControl.WndProc(Message& m)
à System.Windows.Forms.ContainerControl.WndProc(Message& m)
à System.Windows.Forms.Form.WmShowWindow(Message& m)
à System.Windows.Forms.Form.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)[/code]
3/ A config Form wich use Com informations :
* After :
1/ No exception Form.
2/ Configuration.log :
2008-08-18 09:25:18.590720 [ERROR][Config Main]: CommBase: Bad com settings
3/ The config Form wich use COM informations :
We can see information that COM1 port is not available, now.
I modified a little bit Open() method in CommBase class.
I attached modified class.
Could replace older CommBase.cs located in \MediaPortal\Core\SerialUIR\ folder.
Only if you want, of course.