tcoulthard / caesar-lisflood

model
1 stars 2 forks source link

Caesar doesn't load XLM of DTM #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I've just started with this awesome looking programm but every time I try to 
load the whole project settling from XML or a single DTM in ASCII properly 
formated, the programm crashes. Error says that there was an unexpected 
exception and imput string has not the right format. I got the same result also 
in case of tutorial projects and data. I've tried Caesar versions: 
Ceasar-listflood 1.0, Caesar 6.2m and g on systems Windows 7 Ultimate 64b, 
Vista Business 32b, XP Professionl 32b and also Server 2008 Standard 32b. Is 
there some prerequisites to be installed prior using Caesar software?

Thank you for help
Marek

Full error report:

System.FormatException: Imput data string has not right format.
   v System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   v System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   v System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
   v caesar1.Form1.fracGSchanged(Object sender, EventArgs e)
   v System.Windows.Forms.Control.OnTextChanged(EventArgs e)
   v System.Windows.Forms.Control.set_Text(String value)
   v System.Windows.Forms.TextBoxBase.set_Text(String value)
   v System.Windows.Forms.TextBox.set_Text(String value)
   v caesar1.Form1.menuItemConfigFileOpen_Click(Object sender, EventArgs e)
   v System.Windows.Forms.MenuItem.OnClick(EventArgs e)
   v System.Windows.Forms.Command.Invoke()
   v System.Windows.Forms.Control.WmCommand(Message& m)
   v System.Windows.Forms.Control.WndProc(Message& m)
   v System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   v System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Načtená sestavení **************
mscorlib
    Verze sestavení: 2.0.0.0
    Verze Win32: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
    Základ kódu: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
CAESAR 6.2m
    Verze sestavení: 1.0.0.0
    Verze Win32: 1.0.0.0
    Základ kódu: file:///D:/Warehouses/Data_Hydrologie_vse/Caesar%20Simulations/CAESAR%20Tutorial/Kirschgraben/CAESAR%206.2m.exe
----------------------------------------
System.Windows.Forms
    Verze sestavení: 2.0.0.0
    Verze Win32: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
    Základ kódu: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Verze sestavení: 2.0.0.0
    Verze Win32: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
    Základ kódu: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Verze sestavení: 2.0.0.0
    Verze Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
    Základ kódu: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
    Verze sestavení: 2.0.0.0
    Verze Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
    Základ kódu: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
mscorlib.resources
    Verze sestavení: 2.0.0.0
    Verze Win32: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
    Základ kódu: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
System.Windows.Forms.resources
    Verze sestavení: 2.0.0.0
    Verze Win32: 2.0.50727.5420 (Win7SP1.050727-5400)
    Základ kódu: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_cs_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

Original issue reported on code.google.com by vlach...@gmail.com on 4 Sep 2011 at 4:34

GoogleCodeExporter commented 9 years ago
Sorry, in title should be "Caesar doesn't load XML or DTM"

Original comment by vlach...@gmail.com on 4 Sep 2011 at 7:51

GoogleCodeExporter commented 9 years ago
Hi Marek,
Sorry for not getting back to you sooner - I need to make google code email me 
when there are messages/updates..

It should all work fine, so two simple things to check first..

First, are all the files you are using in the same folder? (I expect they are, 
but best to check)

Second - what language settings do you have on your PC? CAESAR-lisflood uses 
'.' instead of ',' as a decimal separator - so check the language settings in 
Windows (its in the general windows settings rather than anything CAESAR 
based)... this has caused loads of problems in the past so may be the issue..
Tom 

Original comment by Tom.Coul...@gmail.com on 5 Sep 2011 at 12:37

GoogleCodeExporter commented 9 years ago
Hi,
After changing language settings everything works perfectly. How could I
forget about this essential issue.

Thanks a lot!

Marek

Original comment by vlach...@gmail.com on 5 Sep 2011 at 1:46

GoogleCodeExporter commented 9 years ago
Great! Glad its working...
Let me know how you get on,
Tom

Original comment by Tom.Coul...@gmail.com on 5 Sep 2011 at 1:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by Tom.Coul...@gmail.com on 5 Sep 2011 at 1:52