Is this bug ?

  • Thread starter Thread starter eNoodle
  • Start date Start date
E

eNoodle

I am using CF SP2 on the device.

simply execute the following code, u'll get result "2";

string strTemp = "2 can";
double Qty = Microsoft.VisualBasic.Conversion.Val(strTemp);
MessageBox.Show(Qty.ToString());

but if u change the word "can" to "doz", U'll get a System.FormatException
error...

string strTemp = "2 doz";
double Qty = Microsoft.VisualBasic.Conversion.Val(strTemp);
MessageBox.Show(Qty.ToString());


Is this a bug ?

Besides that, I have converted my old application written from eVC++ 3 to
NET.CF, some module had been rewrite in C# with using the same programming
logic. and user can directly tell the difference in processing speed, (seems
like slow for 1 or 2 second...)

Any suggestion to improved the performance ?
 
1. If you try the same code on the desktop it works

2. Based on 1 I call this a bug
(in the way Microsoft.VisualBasic.Conversion.Val is implemented on the CF)

3. Val being buggy has been reported before:
http://groups.google.com/groups?hl=...soft.public.dotnet.framework.compactframework

4. It is fixed in the CF 2.0

Regarding your other question, start a new thread and include code that you
would like people to comment on in terms of optimising it...

Cheers
Daniel
 
Please check out the following to 2 articles regarding performance
improvements. They should help you to get started:

1)
http://www.msdn.microsoft.com/mobility/netcf/default.aspx?pull=/library/en-u
s/dnnetcomp/html/netcfimproveformloadperf.asp
2)
http://www.msdn.microsoft.com/mobility/netcf/default.aspx?pull=/library/en-u
s/dnnetcomp/html/netcfperf.asp

Best regards,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "eNoodle" <[email protected]>
| Subject: Is this bug ?
| Date: Thu, 9 Sep 2004 17:04:13 +0800
| Lines: 28
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 203.118.35.2
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.compactframework:60938
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I am using CF SP2 on the device.
|
| simply execute the following code, u'll get result "2";
|
| string strTemp = "2 can";
| double Qty = Microsoft.VisualBasic.Conversion.Val(strTemp);
| MessageBox.Show(Qty.ToString());
|
| but if u change the word "can" to "doz", U'll get a System.FormatException
| error...
|
| string strTemp = "2 doz";
| double Qty = Microsoft.VisualBasic.Conversion.Val(strTemp);
| MessageBox.Show(Qty.ToString());
|
|
| Is this a bug ?
|
| Besides that, I have converted my old application written from eVC++ 3 to
| NET.CF, some module had been rewrite in C# with using the same programming
| logic. and user can directly tell the difference in processing speed,
(seems
| like slow for 1 or 2 second...)
|
| Any suggestion to improved the performance ?
|
|
|
|
|
 
Back
Top