摘要: OK, your program works. You've tested everything in sight. It's time to ship it. So you make a release version. And the world crumbles to dust. You get memory access failures, dialogs don't come up, ... 阅读全文
posted @ 2007-10-29 20:21 能巴 阅读(418) 评论(0) 推荐(0)
摘要: The debug configuration of VC++ projects is the configuration that most debugging and development is done on. This is entirely appropriate because the debug information, lack of optimizations, and the extra debug checks in the Microsoft libraries, make stepping through your code and finding bugs muc 阅读全文
posted @ 2007-10-29 19:52 能巴 阅读(380) 评论(0) 推荐(0)
摘要: Here, I just note about how to use AQTime to find the bottleneck of a dll module. Steps: 1. Create a new project. Set "Host Application", which is the execution module to load your dll. N... 阅读全文
posted @ 2007-10-29 19:18 能巴 阅读(245) 评论(0) 推荐(0)
摘要: 用Mock Object进行独立单元测试(Testing in isolation with mock objects) 独立测试就是单独测试一个类或方法里的代码,而不测试里面调用的其他类或方法的代码。即假定调用的其他类或方法都正常执行。 使用Mock Object的场合 实际对象的行为还不确定。 实际的对象创建和初始化非常复杂。 实际对象中存在很难执行到的行为(如网络... 阅读全文
posted @ 2007-10-29 16:41 能巴 阅读(747) 评论(0) 推荐(0)