Update

Help
Anonymous
2011-01-13
2013-05-23
  • Anonymous - 2011-01-13

    When i try to update a mod or check for updates for the mod manager it gives me a error about a sorry something bad has happened crash dump. Please help

     
  • kaburke

    kaburke - 2011-01-13

    Which version of FOMM are you using? What is in the crashdump?

     
  • Lairin

    Lairin - 2011-05-20

    Thursday, May 19, 2011 - 7:18:27 PM
    Fomm 0.13.21
    OS version: Microsoft Windows NT 6.0.6002 Service Pack 2

    System.FormatException: Input string was not in a correct format.
       at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
       at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
       at System.Version..ctor(String version)
       at Fomm.MainForm.checkForUpdateToolStripMenuItem_Click(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     
  • Kenneth Benson

    Kenneth Benson - 2011-05-20

    I think I've identified the statement causing the problem but I'm not sure where the function Version() is defined.
    Here is the statement:
    701         if(new Version(pversion+".0")>Program.MVersion) {
    702 MessageBox.Show("A new version of fomm is available: "+pversion, "Message");
    703 wasUpdate=true;
    704 }

    It looks like Version() is attempting to cast a number to a string and failing.

     
  • Kenneth Benson

    Kenneth Benson - 2011-05-20

    Sorry, looking at older branch… heres the correct lines:

    722 if (new Version(strWebVersion + ".0") > Program.MVersion)
    723 {
    724 if (MessageBox.Show("A new version of fomm is available: " + strWebVersion +
    725 "\nDo you wish to download?", "Message", MessageBoxButtons.YesNo) == DialogResult.Yes)
    726 {
    727 System.Diagnostics.Process.Start("http://sf.net/projects/fomm");
    728 }
    729 booWasUpdate = true;
    730 }

    And it looks like a cast from string to number failing.

     
  • Lairin

    Lairin - 2011-05-21

    Okay, I really don't know what else to do now. I removed Fall out 3, Fall out NV and the mod manager. restarted my system and then installed the Fall Outs and Mod Manager to find it still has the same errors…

     
  • Kenneth Benson

    Kenneth Benson - 2011-05-28

    Ok, my question is in the following bolded statement what is the value being returned?

    string strVersionPage = null;
    717 using (System.Net.WebClient wclGetter = new System.Net.WebClient())
    718 {
    719 strVersionPage = wclGetter.DownloadString("http://sf.net/projects/fomm");
    720 }
    721 string strWebVersion = rgxVersion.Match(strVersionPage).Groups.Value.Trim();
    722 if (new Version(strWebVersion + ".0") > Program.MVersion)
    723 {
    724 if (MessageBox.Show("A new version of fomm is available: " + strWebVersion +
    725 "\nDo you wish to download?", "Message", MessageBoxButtons.YesNo) == DialogResult.Yes)
    726 {
    727 System.Diagnostics.Process.Start("http://sf.net/projects/fomm");
    728 }
    729 booWasUpdate = true;
    730 }

    If it's not in the pattern 0.13.21 without any other text, then the Version constructor with (strWebVersion + ".0" ) is going to blow up. I know the page it's coming from but I can't figure out exactly what's being returned.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks