作用
可以再程序崩溃后保留崩溃现场,方便事后查找程序的崩溃原因。
前提是奔溃程序所对应的代码和PDB文件都是匹配的(发布程序的时候,保留源代码和PDB文件)。
代码示例
原理是使用DbgHelp的自定义未处理异常来保留崩溃现场到文件的,使用直接包含该头文件,然后再main函数的开始就调用EnableAutoDump函数。// pro_dump.h
// 包含本文件是...
分类:
其他好文 时间:
2014-06-05 11:50:03
阅读次数:
207
1.首先我们的目的是长期监听时间变化,其实应用程序退出。
通过了解我们知道注册ACTION_TIME_TICK广播接收器可以监听系统事件改变,但是
查看SDK发现ACTION_TIME_TICK广播事件只能动态注册:
Broadcast Action: The current time has changed. Sent every minute. You can not receive t...
分类:
移动开发 时间:
2014-06-05 08:35:13
阅读次数:
285
【题目】
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.
The first integer of each row is greater than the last integer of the previous ...
分类:
其他好文 时间:
2014-06-05 08:28:43
阅读次数:
321
Catch That Cow
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 43851
Accepted: 13674
Description
Farmer John has been informed of the location of a fugitiv...
分类:
其他好文 时间:
2014-06-05 07:45:38
阅读次数:
220
链接:http://poj.org/problem?id=3259
Description
While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path t...
分类:
其他好文 时间:
2014-06-05 05:26:33
阅读次数:
240
我的QT环境:
源代码的字符集:gb18030
QT的项目文件pro的字符集:CODECFORTR = GB18030
在英文系统上显示乱码
原因:英文系统上如果要显示中文,可以通过加载QTplugins下的插件来进行解码,所以要想在英文系统上正确显示中文就只能是通过unicode编码了,
解决方案:
1.我采用的是utf8编码,我没有修改源代码的字符集,而是将所以由tr()...
分类:
其他好文 时间:
2014-06-05 00:14:42
阅读次数:
287
【题目】
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
You should pack your words in a greedy approach; that is, pack as many words as you can in each line. Pad ...
分类:
其他好文 时间:
2014-06-04 22:37:46
阅读次数:
389
Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤ 100,0...
分类:
其他好文 时间:
2014-06-03 05:30:23
阅读次数:
394
操作系统版本:centos 6.0 x86_64
想要在linux上运行robot framework的测试用例,需要安装以下工具和软件:
1.安装python 2.7.6 ,首先python --version 查看系统是否装有python,并且python的版本是不是我们要用的
Python 2.6.5
说明已经装有python 2.6.5,下载python2.7.6,下载地址:...
分类:
其他好文 时间:
2014-06-03 03:09:28
阅读次数:
463
WIN7 下 Qt Creator 安装 QWT环境:WIN7 +QT
Creator2.6.21.下载QWT源代码qwt-6.1-rc3.zip2 编译QWTopen
projects->找到解压后的qwt-6.0.1中的qwt.pro文件->open,找到designer ->qwtbuild-...