Developer Support Group Global Technical Support Center, Greater China Region (GCR GTSC)
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to email our Managers at
. You can also contact my manager Li-Ming Fan at (86-21) 6469-1188 ext. 6330 or by sending email mailto:lmfan@microsoft.com
.
微软的回复 - 2007/7/5 11:55:08 From: 叶帆 [mailto:yefan@vip.sina.com] Sent: Thursday, July 05, 2007 11:35 AM To: Jimmy Zhu Subject: Re: RE: SRZ070313000366
Jimmy Zhu,您好!
好的,谢谢!
微软的回复 - 2007/7/5 11:54:32 From: Jimmy Zhu Sent: Thursday, July 05, 2007 11:29 AM To: '叶帆' Subject: RE: SRZ070313000366
Developer Support Group Global Technical Support Center, Greater China Region (GCR GTSC)
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to email our Managers at
. You can also contact my manager Li-Ming Fan at (86-21) 6469-1188 ext. 6330 or by sending email mailto:lmfan@microsoft.com
.
Best regards, Jimmy Zhu Developer Support Group Global Technical Support Center, Greater China Region (GCR GTSC)
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to email our Managers at
. You can also contact my manager Wen Yu at (86-21) 6469-1188 ext. 6303 or by sending email
.
for (int i = mtype.Length; i < mtype.Length + type.Length; i++) { mtype[i] = type[i - mtype.Length]; }
EmbedProject XmlData = new EmbedProject(); Stream sf = new FileStream(XmlFile, FileMode.Open, FileAccess.Read, FileShare.None); XmlSerializer xmls = new XmlSerializer(typeof(EmbedProject), mtype); XmlData = (EmbedProject)xmls.Deserialize(sf); sf.Close(); return XmlData; } catch(Exception e) { MessageBox.Show("反序列化失败:"+XmlFile +"<"+ e.Message+">","EasyHMI"); return null; } } 我是利用public List
mForm = new List
();语句,把多个类一起序列化到同一个xml文件中去(项目要求保存到一个文件,不允许多个xml文件),然后利用上面的代码反序列化。
问题是:在上位机大约1~3秒(视文件大小)就可以反序列化完毕,然而在WinCE平台(Arm9 200M主频)同样文件需要20~30秒才能反序列化完毕,并且反序列化期间CPU独占,其它线程基本处在堵塞状态。
希望的解决方案如下:
1、 能不能提供一个事件,反馈反序列化进度;
2、 XML序列化能不能自定义,我希望用代码控制我的每个类需要序列化的字段;
3、 提供反序列化加速的手段或技巧;
此外是Bug反馈,同样的xml文件(约11mb,不仅仅是因为大小,在继续添加某些类的序列化内容时,又可以成功)在上位机反序列化成功,在下位机反序列化失败(提示x行y列,有问题)。
2、 在WinCE平台上.net 精简框架集2.0下,文本显示和Windows平台不一致,如下图:
图片链接:https://p-blog.csdn.net/images/p_blog_csdn_net/yefanqiu/23649/o_%e6%96%87%e5%ad%97%e6%95%85%e9%9a%9c.jpg
实现的代码如下:
StringFormat sFormat = new StringFormat();
sFormat.Alignment = Alignment;
sFormat.LineAlignment = StringAlignment.Center;
e.DrawString(Text, font, new SolidBrush(ForeColor), Rect, sFormat);
微软的回复 - 2007/3/14 14:36:15 From: Jimmy Zhu Sent: Wednesday, March 14, 2007 2:35 PM To: 'yefan@vip.sina.com' Subject: SRZ070313000366
Hi Mr. Liu,
Thank you for contacting Microsoft GTSC. My name is Jimmy. I will be working with you on the service request SRZ070313000366.
According to the problem description in case log, there are two questions for .NET CF development on Windows CE platform. (1) Question about XML deserialize issue. (2) Font display issue on WinCE device. Please correct me if I misunderstood. As we are limited to handle one issue in one case, could you please separate one question to another case and let me know which one shall we focus in this case? I will go ahead and do some research based on your response. Please don’t hesitate to let me know if there is any concerns or comments.
Thank you.
Best regards, Jimmy Zhu Developer Support Group Global Technical Support Center, Greater China Region (GCR GTSC)
Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to email our Managers at
. You can also contact my manager Wen Yu at (86-21) 6469-1188 ext. 6303 or by sending email
.