@ 前记: 最近查一个线上项目的crash,review代码无果,crash几率低,不可在本地环境重现。之后在线上好几个服务器跑valgrind就不crash了。个人猜测可能是跑valgrind后性能下降的比较严重,导致crash那个点触发不到了。 gcc从4.8开始支持address sani.....
分类:
其他好文 时间:
2014-07-29 16:47:42
阅读次数:
282
记录iOS开发生涯中,因知识库不完备、知识点不清晰,导致的各种坑。 1.You cannot remove objects from array while fast-enumerating it: numeration is “safe”—the enumerator has a mutation guard so that...
分类:
其他好文 时间:
2014-07-28 16:55:24
阅读次数:
247
Problem Description
=== Op tech briefing, 2002/11/02 06:42 CST ===
"The item is locked in a Klein safe behind a painting in the second-floor library. Klein safes are extremely rare; most of them,...
分类:
其他好文 时间:
2014-07-27 23:55:39
阅读次数:
391
由于项目中需要和USB设备通讯,于是用到LibUsbDotNet.dll这个开源的项目。但是在使用的时候发现关闭USB设备后再打开,过2秒就会出现异常“已关闭safe handle”,由于网上关于LibUsbDotNet的资料比较少,查了好久都查不出原因。不过用关键字“已关闭safe handle”...
分类:
Web程序 时间:
2014-07-26 01:14:36
阅读次数:
1313
当初学 Python 时,想要弄懂 Python 的错误信息的含义可能有点复杂。这里列出了常见的的一些让你程序 crash 的运行时错误。1)忘记在if,elif,else,for,while,class,def声明末尾添加 :(导致 “SyntaxError :invalid syntax”)该错...
分类:
编程语言 时间:
2014-07-23 20:46:25
阅读次数:
373
开发过程中有时候会在Thread类中执行某些操作,有些操作会由于Android版本的不同,尤其是低版本而Crash,因此必要的时候会查看某些容易引起crash的操作是否是在主线程,这里举三种方法:方法一:使用Looper类判断Looper.myLooper() == Looper.getMainLo...
分类:
移动开发 时间:
2014-07-23 20:35:35
阅读次数:
219
每当出现bug或者crash的时候,我们总是习惯性的加入了NSLog或则单步调试。但是往往有些时候总找不到莫名奇妙的原因,回头看看C++对于异常处理的一些总结。 @try?{
????<#Code?that?can?potentially?t...
分类:
移动开发 时间:
2014-07-23 13:54:56
阅读次数:
232
Right click ‘Computer’ and select ‘Properties’;Click the ‘Advanced system settings’ and in the dialog tab of ‘Advanced’ click button ‘Environment Vari...
Windows版的PHP从版本5.2.1开始有Thread Safe(线程安全)和None Thread Safe(NTS,非线程安全)之分,这两者不同在于何处?到底应该用哪种?这里做一个简单的介绍。 从2000年10月20日发布的第一个Windows版的PHP3....
分类:
编程语言 时间:
2014-07-21 23:39:34
阅读次数:
353
Square City is a very easy place for people to walk around. The two-way streets run North-South or East-West dividing the city into regular blocks. Most street int...
分类:
其他好文 时间:
2014-07-20 22:33:53
阅读次数:
295