* ThreadPool starvation check is done all the time now, not only under debugging mode

* Added Helpers.EnUsCulture for float parsing, converted all of the Single and Double parsing to be internationally friendly

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1089 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2007-03-31 22:49:25 +00:00
parent aab41c4235
commit 003ca29a1d
8 changed files with 33 additions and 27 deletions

View File

@@ -8,6 +8,9 @@ namespace VisualParamGenerator
{
class VisualParamGenerator
{
public static readonly System.Globalization.CultureInfo EnUsCulture =
new System.Globalization.CultureInfo("en-us");
static void Main(string[] args)
{
if (args.Length < 3)
@@ -109,12 +112,15 @@ namespace VisualParamGenerator
if (node.Attributes["label_max"] != null)
label_max = node.Attributes["label_max"].Value;
float min = Single.Parse(node.Attributes["value_min"].Value);
float max = Single.Parse(node.Attributes["value_max"].Value);
float min = Single.Parse(node.Attributes["value_min"].Value,
System.Globalization.NumberStyles.Float, EnUsCulture.NumberFormat);
float max = Single.Parse(node.Attributes["value_max"].Value,
System.Globalization.NumberStyles.Float, EnUsCulture.NumberFormat);
float def;
if (node.Attributes["value_default"] != null)
def = Single.Parse(node.Attributes["value_default"].Value);
def = Single.Parse(node.Attributes["value_default"].Value,
System.Globalization.NumberStyles.Float, EnUsCulture.NumberFormat);
else
def = min;