Edward_jie

for you, my Hall of Frame

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  92 随笔 :: 45 文章 :: 539 评论 :: 43万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

09 2012 档案

摘要:在使用多线程的时候,经常会报错OpenFile Operation not permitted on IsolatedStorageFileStream,原因是IsolatedStorageFile和IsolatedStorageFileStream在多线程中被多处调用而出现不可预知的内存崩溃,此时需要进行加锁,代码如下: private static readonly object _readLock = new object(); using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStore. 阅读全文
posted @ 2012-09-29 11:16 Edward_诺 阅读(489) 评论(0) 推荐(0) 编辑

摘要:In the current version of Windows Phone, there’ s no support for a built-in local database. This will be taken care of in the next release of the OS (codename “Mango”), which will be released late this year. Mango will have a built-in SQL CE (-like) database which can be accessed using LINQ to SQL. 阅读全文
posted @ 2012-09-28 16:40 Edward_诺 阅读(616) 评论(0) 推荐(0) 编辑

摘要:windows phone使用profiler分析器很方便的测试代码运行时间,很具体,安装profiler之后找到对应项目的debug文件为build路径,然后点击运行app的时候,报错conmanui.dll没有找到的问题解决办法:win7 x64 C:\Program Files (x86)\Common Files\microsoft shared\Phone Tools\CoreCon\10.0\Bin\2052路径下有conmanui.dll;而profiler要找的路径是C:\Program Files (x86)\Common Files\microsoft shared\Pho 阅读全文
posted @ 2012-09-28 11:31 Edward_诺 阅读(210) 评论(0) 推荐(0) 编辑

摘要:This week I have checked in a port of NLog 2.0 for Windows Phone 7. It’s still very experimental and the intention of this release is to get feedback from people. Please use at your own risk.Current build supports 8 targets:Console – can be used to write logs to the console (only works in Emulator – 阅读全文
posted @ 2012-09-27 13:05 Edward_诺 阅读(318) 评论(0) 推荐(0) 编辑

摘要:A while ago as part of my post http://nicksnettravels.builttoroam.com/post/2010/07/24/Howe28099s-my-Windows-Phone-7-application-being-used-Getting-started-with-the-Microsoft-Silverlight-Analytics-Framework-for-Windows-Phone-development.aspxdiscussed how you can enable the console window for the Wind 阅读全文
posted @ 2012-09-27 11:03 Edward_诺 阅读(284) 评论(1) 推荐(0) 编辑

摘要:1.用DBHelper和sqlite数据库的时候,如果拷贝物理文件到存储区,而不是在程序里面运行语句生成表来进行操作的时候,会报unable to open the database的错误,这是因为sqlconectioin里面运行sql语句的时候默认是有权限限制的,我们打开源码的oc_win文件,修改795行的代码第二个参数为,openorcrearte就可以了。2.在user control中运用数据绑定的时候,比如text="{binding name}",这需要首先在xaml上面加入DataContext="{Binding RelativeSource= 阅读全文
posted @ 2012-09-20 00:31 Edward_诺 阅读(163) 评论(0) 推荐(0) 编辑

摘要:Uri uri = new Uri("background.png", UriKind.Relative); var source = new BitmapImage(); source.CreateOptions = BitmapCreateOptions.None; System.Windows.Resources.StreamResourceInfo s = Application.GetResourceStream(uri); source.SetSource(s.Stream); WriteableBitmap bmp = new WriteableBitmap( 阅读全文
posted @ 2012-09-12 11:44 Edward_诺 阅读(218) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示