摘要: origin: http://blogs.msdn.com/b/jgoldb/archive/2010/06/14/memory-leak-hotfixes-for-wpf-3-5-sp1.aspxHopefully folks saw my related blog post Finding Memory Leaks in WPF-based applications .In this post... 阅读全文
posted @ 2010-07-26 13:05 江湖飘 阅读(325) 评论(0) 推荐(0) 编辑
摘要: Origin: http://blogs.msdn.com/b/jgoldb/archive/2008/02/04/finding-memory-leaks-in-wpf-based-applications.aspxThere are numbers of blogs that folks wrote about memory leaks in Microsoft .Net Framework ... 阅读全文
posted @ 2010-07-26 13:03 江湖飘 阅读(644) 评论(0) 推荐(0) 编辑
摘要: Origin Web: http://www.rainsts.net/article.asp?id=474 阅读全文
posted @ 2009-10-20 10:47 江湖飘 阅读(187) 评论(0) 推荐(0) 编辑
摘要: In the last post, I wrote about how focus is generally managed in WPF - we have focus scopes to track a single element within that scope for logical focus, and then one of those elements is given phys... 阅读全文
posted @ 2009-10-20 10:38 江湖飘 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: 命令格式:Subst [Drive1:] [Drive2:\Path]作用:映射某磁盘中的文件到另一个磁盘。eg. Subst e: "C:\My Disk(E)"删除操作:Subst e: /D顺便提一下可以用这个方法隐藏软盘A,方法如下:在运行中输入:sysedit在C:\AUTOEXEC.BAT文件中输入相应的命令,表示重启就运行批处理文件。 阅读全文
posted @ 2009-06-03 10:24 江湖飘 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 贴个C++的运算符优先级表,给大家和自己有个参考吧! Precedence Operator Description Example Associativity 1 () [] -> . :: ++ -- Grouping operator Array access Member access from a pointer Member access from an object Scopi... 阅读全文
posted @ 2009-04-01 12:25 江湖飘 阅读(514) 评论(0) 推荐(0) 编辑
摘要: [代码]如上代码,首先如果不在D的继承中,将一个父类(B或C)加上virtual关键字的继承的话,编译会出错,因为在D中会有两条路径继承A的f()函数,会产生冲突。然后D的对象直接调用f()也会出错,会有二义性,解决方法是加上类的修饰符。如D d; d.B::f();d.A::f(); 阅读全文
posted @ 2009-03-30 02:00 江湖飘 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 最近我们在工作中碰到一个奇怪的问题,最后确定是多继承引起的指针漂移,跟C++对象模型有关。示意如下:class A {...};class B{...};class AB : public B, publicA {...}...AB *pab = new AB();A* pa = (A*)pab;B* pb = (B*)pab;这时候你发现pa和pb的值是不一样的!它们中有一个跟pab是相等的,而... 阅读全文
posted @ 2009-03-30 01:51 江湖飘 阅读(516) 评论(0) 推荐(1) 编辑
摘要: 记得有时在刚装完IIS访问localhost网页时会提示输入用户名和密码,我直到现在还没有输入成功过,不知道是否可以通过“我的电脑”中的“管理”菜单中的用户那里设置用户名和密码,然后将相应的用户名和密码输入才会成功,没有试过。另一个解决方法是添加匿名用户访问:IIS属性的“目录安全”页的“编辑”按钮。勾... 阅读全文
posted @ 2009-03-29 22:12 江湖飘 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 记得刚开始学WCF的时候就尝试过去在IIS中部署部署WCF,但是找了很多网上的资料,都没有部署成功,按照网上的说法是做下来,不知是不是人品的问题,总是成功不了,呵呵。那时候也实在是太菜了,IIS刚接触,甚至连.NET也是刚接触,因为公司用的是直接用SOAP TCP传输的,没有涉及到IIS的部署,所以同事中也都没有试过在IIS中部署,后来就不了了之了。今天因为同住的学长在弄这个东西,然后就帮忙查了一... 阅读全文
posted @ 2009-03-29 21:48 江湖飘 阅读(2273) 评论(0) 推荐(1) 编辑