Page 4 of 15
#46 RE: [Tool] UEFI Download Tool by GlitchyHack 19.04.2014 00:41

avatar

Zitat von Pacman im Beitrag #45
Yes, saglamtimur is right, just for test i changed from Swedish to USA location, and it works now, thanks :)

Are you just going to keep it like that or?

#47 RE: [Tool] UEFI Download Tool by saglamtimur 19.04.2014 00:55

Zitat von GlitchyHack im Beitrag #44
Zitat von saglamtimur im Beitrag #42
To Pacman and GlitchyHack

This error indicates a type conversation problem (string to decimal) which I face usually. For example, in Turkish we use (,) as decimal separator, so if you try to convert "123,45" (as string) to decimal (123.45) it will give you error. GlitchyHack, may be using InvariantCulture for the NumberFormat or NumberStyle solve the problem. Pacman, you may try to change regional settings, at least, decimal and thousands separator.

at System.Number.StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean)
at System.Number.ParseDecimal(System.String, System.Globalization.NumberStyles, System.Globalization.NumberFormatInfo)

So how would i go about fixing that issue?


As soon as I sit infront of my development pc, I will try to reproduce error and give the solution. Sorry I don't remember the exact codes.

#48 RE: [Tool] UEFI Download Tool by Pacman 19.04.2014 00:58

avatar

Well, changing location takes ~1 second, so no problem to switch.
Of course smoothest would be if a fix was implemented.

#49 RE: [Tool] UEFI Download Tool by saglamtimur 19.04.2014 01:07

Ok, can you please try this?

1
2
3
4
5
6
7
8
9
10
11
 
            string theString = "1.234,56";
decimal x;
try
{
//your original code goes here
// x=bla bla
}
catch (Exception)
{
x = decimal.Parse(theString, new NumberFormatInfo() { NumberDecimalSeparator = ",", NumberGroupSeparator = "." });
}
 

#50 RE: [Tool] UEFI Download Tool by GlitchyHack 19.04.2014 01:14

avatar

Zitat von saglamtimur im Beitrag #49
Ok, can you please try this?

1
2
3
4
5
6
7
8
9
10
11
 
            string theString = "1.234,56";
decimal x;
try
{
//your original code goes here
// x=bla bla
}
catch (Exception)
{
x = decimal.Parse(theString, new NumberFormatInfo() { NumberDecimalSeparator = ",", NumberGroupSeparator = "." });
}
 



Is this the only problem i will have is 1,1 and 1.0 there are no other different things i can run into it? if so i can use this.

#51 RE: [Tool] UEFI Download Tool by GlitchyHack 19.04.2014 06:03

avatar

Zitat von saglamtimur im Beitrag #49
Ok, can you please try this?

1
2
3
4
5
6
7
8
9
10
11
 
            string theString = "1.234,56";
decimal x;
try
{
//your original code goes here
// x=bla bla
}
catch (Exception)
{
x = decimal.Parse(theString, new NumberFormatInfo() { NumberDecimalSeparator = ",", NumberGroupSeparator = "." });
}
 



Also i coded my program in c#, so this is really helpful cause this example is in c#. Thanks i'll release this fix soon.

#52 RE: [Tool] UEFI Download Tool by GlitchyHack 19.04.2014 10:01

avatar

Zitat von Pacman im Beitrag #48
Well, changing location takes ~1 second, so no problem to switch.
Of course smoothest would be if a fix was implemented.

I have fixed this problem i believe. I tested it by changing my location in time and date to turkish.
The program never crashed though, even the one off my site.
but the decimal places was broken. it displayed version as 7, instead of 0.7
When i applied the fix i could see 0.7 as 0,7.
and it seems to work after i made everything else parse with the formating
I'll release a update soon and you tell me if it is fixed on turkish or not.

#53 RE: [Tool] UEFI Download Tool by Pacman 19.04.2014 11:00

avatar

Try setting it to Swedish, i tested to change to Turkish and that worked for me also, i set it back to Swedish it crash.

#54 RE: [Tool] UEFI Download Tool by GlitchyHack 19.04.2014 11:13

avatar

Zitat von Pacman im Beitrag #53
Try setting it to Swedish, i tested to change to Turkish and that worked for me also, i set it back to Swedish it crash.

I just set it to Swedish with the fix i included with detects your format, and it didn't crash, so i guess it worked.
I have added other fixes too, Next Update will have that fix others and a Reset button on your preferences Tab to reset all settings back to default.
Default download location is now your desktop.

#55 RE: [Tool] UEFI Download Tool by Pacman 19.04.2014 11:21

avatar

Sounds good, i'll try it when it is available.

#56 RE: [Tool] UEFI Download Tool by ErfanDL 19.04.2014 11:39

avatar

Hi. I download latest version ( v 0.7 ) but cant detect my motherboard. the motherboard is ASUS P8P67

#57 RE: [Tool] UEFI Download Tool by Pacman 19.04.2014 11:56

avatar

Did you run it as Admin? just a thought.

#58 RE: [Tool] UEFI Download Tool by GlitchyHack 19.04.2014 12:12

avatar

Zitat von ErfanDL im Beitrag #56
Hi. I download latest version ( v 0.7 ) but cant detect my motherboard. the motherboard is ASUS P8P67

What happened, what errors did you get?

#59 RE: [Tool] UEFI Download Tool by GlitchyHack 19.04.2014 12:40

avatar

Zitat von Pacman im Beitrag #55
Sounds good, i'll try it when it is available.

Update v0.8 Should be out in the next 3 hours or so. Maybe even less. I'm not sure if you'll be up or not.

#60 RE: [Tool] UEFI Download Tool by Pacman 19.04.2014 12:59

avatar

I'm just about to leave for a while, but i will probably be able to test in a few hours.

Xobor Forum Software von Xobor
Datenschutz