Menu

#3 gatesim crash on reload a circuit

open
nobody
None
5
2012-09-14
2010-03-04
No

gatesim crash after reloadin a previously saved circuit. Porblem seems related on Internationalization features (I m in "Italy"): decimal numbers are stored using "dot" as decimal separation but they are reed as thousand separators and droped it. Thus decimal number became very big. I workaround put .Replace(".",",") at the end of the line 271-272 of CircuitSML.cs:
double x = double.Parse(gate.Element("Point").Attribute("X").Value.Replace(".",","));
double y = double.Parse(gate.Element("Point").Attribute("Y").Value.Replace(".", ","));

Discussion


Log in to post a comment.