`
byytj
  • 浏览: 48728 次
  • 来自: ...
文章分类
社区版块
存档分类
最新评论
文章列表
看群里有同志老是在找线程池的实现,听说网上曾经发布的都是不正确的,今天我就自己弄了一个,不正确的地方大家指点指点mutex.hxx 互斥类  1#ifndef INCLUDE_MUTEX_HH 2#define INCLUDE_MUTEX_HH 3#include <pthread.h> 4 5class Mutex 6
http://www.codeproject.com/Articles/22245/Quick-start-to-using-WinDbg
Introduction to x64 debugging, part 2 Last time, I talked about some of the basic differences you’ll see when switching to an x64 system if you are doing debugging using the Debugging Tools for Windows package.  In this installment, I’ll run through some of the other differences with debugging tha ...
Introduction to x64 debugging, part 1 There are some subtle differences between using the Debugging Tools for Windows (DTW) toolset on x86 and x64 that are worth mentioning, especially if you are new to doing x64 debugging. Most of this post applies to all of the debuggers shipped in the DTW packa ...
Sometimes we get a process dump from x64 Windows and when we load it into WinDbg we get the output telling us that an exception or a breakpoint comes from wow64.dll. For example: Loading Dump File [X:\ppid2088.dmp]User Mini Dump File with Full Memory: Only application data is available Comment: 'Us ...
1.       g//F5 Run(g)            F7运行到光标处           F9设断点           p(step)//F10 单步run     t//F11单步进入函数run  ctrl+break 暂停 2.       .sympath C:\MyCodesSymbols; SRV*C:\MyLocalSymbols*http://msdl.microsoft.com/download/symbols // set symbol file path              .srcpath \\...   // set source file pa ...
如何手工抓取dump文件在生产环境下进行故障诊断时,为了不终止正在运行的服务或应用程序,有两种方式可以对正在运行的服务或应用程序的进程进行分析和调试。 首先一种比较直观简洁的方式就是用WinDbg等调试器直接attach到 ...
这一部分主要介绍用户态调试相关的知识和工具。包括:汇 编、异常(exception)、内存布局、堆(heap)、栈(stack)、CRT(C Runtime)、handle/Criticalsection/thread context/windbg/ dump/live debug和Dr Watson等。 书中不会对知识点作全面的介绍,而是针对知识点在调试中过程中应该如何使用进行说明。知识点本身在下面两本书中有非常详细的介绍: Programming Applications for Microsoft Windows Debugging Applications for W ...
1) Built-in help commands Cmd Variants / Params Description ? ? ? /D Display regular commands Display regular commands as DML .help .help .help /D .help /D a* Display . commands Display . commands in DML format (top bar of links is given) D ...
最近在编写Warensoft3D游戏引擎,并预计明年年初发布测试版本,底层引擎使用DirectX和MONO来编写,上层的逻辑使用C#来编写,因此编写了大量C#与C++互调的代码,现在经验写出来与大家分享,并希望后来者少走弯路。 C#与C++交互,总体来说可以有两种方法: 利用C++/CLI作为代理中间层 利用PInvoke实现直接调用 第一种方法:实现起来比较简单直观,并且可以实现C#调用C++所写的类,但是问题是MONO构架不支持C++/CLI功能,因此无法实现脱离Microsoft .NET Framework跨平台运行。 第二种方法:简单的实现并不麻烦,只要添 ...
好久没写东西了,又开始写代码。今天写了点东西记下来: 现在json因为轻型,越来越流行,部门内部的数据标准趋向于json,所以开始学习。 本次工作内容是要将以下数据解析成.Net可以使用的数据,返回的数据除了header,其他 ...
System.Web.Script.Serialization   /// <summary>        /// json字符串转换为Xml对象        /// </summary>        /// <param name="sJson"></param>        /// <returns></returns>        public static XmlDocument Json2Xml(string sJson)        {            //XmlDict ...
最近一项目中用XML进行数据交互,有一些(多个)不完全相同的XML文档,同样代表不同的数据,即我们在发送,接收时都是一个XML格式字符串,类试<?xml version=”1.0” encoding=”utf-8”?><message version="1.0"><header><messengerid>200911131015330000000001</messengerid><timestamp>20091113101533</timestamp></header><bo ...

xml

using System.Xml;using System.Xml.XPath;using System.Runtime.Serialization.Json;using System.Runtime.Serialization;using System.IO;using System.Xml.Serialization;   protected void act_test(object sender, EventArgs e)        {            //string xml_str = "";             //xml_str = xml_ ...
欲成为海洋大师,必知晓海中每一滴水的真名。 刚开始只是想找一个转换JSON数组的方法,结果在MSDN翻到一大把。 搜索过程中免不了碰到一大堆名词:WCF => DataContract => DataMember => DataContractJsonSerializer,然后就是不停的引入命名空间。 这一段经历,立即让我就联想到了上面引用的这句存在于某小说里面巫师的话语。静态语言真有点令人抓狂,不停的做准备,然后才可能开始工作。 对比 .NET下几种常见的解析JSON方法 主要类 命名空间 限制 内建LINQ支持 DataContractJsonS ...
Global site tag (gtag.js) - Google Analytics