Is this a bug in the framework ?

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
 
S

Simon Hart [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top