Reply to thread

Ok, did a little bit more investigation on this.


It seems that the private contructor (singleton?) of the SerialUIR.cs


[code]

        private SerialUIR()

        {

      remotefile = Config.GetFile(Config.Dir.Config, "remotevalues.xml");

        }[/code]


is never called - that means the remote-file variable is never initialized.


And because the persistor and loader which make use of this variable are encapsulated in try-catch-blocks without handling an exception the config-app behaves normal - but internally that part goes wrong.


[code]

        public void SaveInternalValues()

        {

            try

            {

                System.Xml.XmlTextWriter writer = new System.Xml.XmlTextWriter(remotefile, System.Text.Encoding.Unicode);


                writer.WriteStartElement("docElement");

                foreach(string key in commandsLearned.Keys)

                {

                    writer.WriteStartElement("entry");

                    writer.WriteAttributeString("actionInt", ((int)commandsLearned[key]).ToString());

                    writer.WriteAttributeString("actionDescription", (commandsLearned[key]).ToString());

                    writer.WriteString(key);

                    writer.WriteEndElement();

                }

                writer.WriteEndElement();

                writer.Close();

            }

            catch(Exception)

            {

            }

        }[/code]


Ok - this seems to be a real bug. Can somebody confirm this and add this to the bugtracking-system?


TIA,

moh


Top Bottom