摘要: 最近项目突然收到了一个紧急的问题报告 - 用户在进行某些关键操作的时候整个软件突然就crash掉了。幸好产品继承了自动抓取dump的功能。。。 阅读全文
posted @ 2014-05-09 17:01 relianceslee 阅读(815) 评论(0) 推荐(0) 编辑
摘要: In Windows 7 the TaskMgr provides one easy way to create dump for the applications. You can right click the Application from Applications tab or click the process from Processes tab and click the Create Dump File menu item. The dump files will be created under certain folder soon. Here assume that w 阅读全文
posted @ 2013-08-14 13:33 relianceslee 阅读(1572) 评论(0) 推荐(0) 编辑
摘要: It's the first time that I tried the Ubuntu. But I met quite a lot of problems. The wireless is just one of them. But thanks for the internet, I got a lot of help from a lot of guys. Here I would like to list the steps that help install the wireless dirver in D630. 阅读全文
posted @ 2013-03-24 20:26 relianceslee 阅读(364) 评论(0) 推荐(0) 编辑
摘要: C++ Template是一个广泛使用的功能。通过使用C++ Template,我们可以通过相同的逻辑去处理不同的类型数据。Template同样也是一种高度代码重用的方式。你可能没有亲自写过一个模板的代码,但是你可能已经体验过他的威力。因为我们经常使用的STL就是通过模板来实现的。我们常用的一些容器类,比如vector, set之类的,都是通过一套代码,来实现了对各种数据类型的支持。这些数据类型除了系统本身支持的,比如int, char之类的,同样也包括你自己定义的数据类型。所以说,你应该非常熟练的掌握这个功能。 阅读全文
posted @ 2012-02-28 21:53 relianceslee 阅读(387) 评论(0) 推荐(0) 编辑
摘要: If you have started TDD, if you have written a lot of unit tests, i believe that you do love this feature in visual studio 2010.Running tons of unit test in sequencial needs quite a lot of time. (for sure we should minimize the duration of each unit test as much as possible, i.e., less than 1/10 sec 阅读全文
posted @ 2011-11-04 11:26 relianceslee 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 我们在写Unit Test的时候是避免不了写Mock的。好的Mock库可以给我们极大的方便。在C++里我们有google mock库。在.NET里我们可以使用开源的Moq库。你可以通过这个链接来访问Moq的官方网站: http://code.google.com/p/moq/wiki/QuickStart这这篇文档里,我们将通过一个小的例子来学习如何使用Moq库。public interface IFoo { string GetClientName(); void SetClientName(string strName); } class Fo... 阅读全文
posted @ 2011-10-31 14:55 relianceslee 阅读(624) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace LandmaExpressionDemo{ class Program { static void Main(string[] args) { //anonymous method Action ac = delegate() { Console.WriteLine("hello delegate"); }; ... 阅读全文
posted @ 2011-10-31 14:13 relianceslee 阅读(225) 评论(0) 推荐(0) 编辑
摘要: beginning-mocking-with-moq-3 阅读全文
posted @ 2011-10-26 15:23 relianceslee 阅读(312) 评论(0) 推荐(0) 编辑
摘要: Recommended : STL Lecture in Channel 9 阅读全文
posted @ 2011-08-29 16:13 relianceslee 阅读(148) 评论(0) 推荐(0) 编辑
摘要: A typical memory leak 阅读全文
posted @ 2011-06-21 17:35 relianceslee 阅读(153) 评论(0) 推荐(0) 编辑