随笔分类 -  debug

MiniDump类笔记
摘要:h文件 :#pragma once#include #include #include #include class CMiniDump{public: static BOOL Begin(VOID); //声明成静态函数是想直接调用而不必new一个实例 s... 阅读全文

posted @ 2015-02-05 17:57 齐文宣 阅读(367) 评论(0) 推荐(0)

使用Template时 typename 关键字的用法
摘要:以下面这个简单的程序为例#include templatestruct EST_TTI_Entry{ float t; CONTAINER::Index i;};int main(){ return 0;}使用 visual studio 2008 编译会提示 1>d:\code\cplusexercise\abouttemplatememberdefaultint\main.cc(7) : error C2146: syntax error : missing ';' before identifier 'i'1>d:\code\cplusexer 阅读全文

posted @ 2013-10-17 15:51 齐文宣 阅读(899) 评论(0) 推荐(0)

CLR has been unable to transition from COM context … for 60 seconds’ error. 此错误的解决方法
摘要:One fix for the problem is to go to the Debug -> Exceptions -> Managed Debug Assistants menu in Visual Studio and uncheck the ContextSwitchDeadlock来源网站 http://blog.wpfwonderland.com/2007/08/16/clr-has-been-unable-to-transition-from-com-context-for-60-seconds/ 阅读全文

posted @ 2013-09-10 10:48 齐文宣 阅读(657) 评论(0) 推荐(0)

wpf程序报"The name 'InitializeComponent' does not exist in the current context"的
摘要:stackOverFlow 's answerI've encountered this a couple times and keep forgetting what causes it. I ran into this when I renamed the namespace on my code behind file but not in my XAML.So check if you've done the same. They need to match since they are both part of a partial classnamespace 阅读全文

posted @ 2013-06-28 16:20 齐文宣 阅读(832) 评论(0) 推荐(0)

解决---请求“System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”类型的权限已失败。
摘要:1:项目属性-----应用程序:清单为Properties\app.manifest2: 修改安全选项:启用ClickOnce安全设置,选择这是安全可信的应用程序来源网页: http://www.silverlightchina.net/html/study/WPF/2012/0315/14531.html 阅读全文

posted @ 2013-06-26 21:36 齐文宣 阅读(3015) 评论(1) 推荐(0)

调试时出现 'The breakpoint will not currently be hit. No symbols have been loaded for this document' 当前断电不会被命中,符号未被加载的解决方法
摘要:stackOverFlow的有效答案:I had the same problem, I was debugging my project, and i had to right click the project and select "new debug instance". I only needed to do this once, then after that it worked as normal.方法是:右击项目选择 : 启动新实例原帖地址 :http://stackoverflow.com/questions/2301216/the-breakpoint- 阅读全文

posted @ 2013-06-12 14:08 齐文宣 阅读(1139) 评论(0) 推荐(0)

导航