Is this a bug in the framework ?

  • Thread starter Thread starter Sagaert Johan
  • Start date Start date
S

Sagaert Johan

Hi

on my device this code yields a "Fatal Application error":


string s = "10";
float floatfromstring = float.Parse(s);

this code also does give me the same error

float floatfromstring =Convert.ToSingle(s);

any idea ?

the code double doublefromstring =Convert.ToDouble(s); and double.Parse are
working.



Ps no problem on the emulator, so i think something is wrong with the
compact framework on my device (win CE5.0)



Johan
 
What version of the framework are you using? I just tried that code on CF3.5
and CF 2.0 (under VS 2008) on a WM 5.0 and I get no errors.
 
Back
Top