错误原因:
exc_bad_access(code=1, address=0x789870)野指针错误,主要的原因是,当某个对象被完全释放,也就是retainCount,引用计数为0后。再去通过该对象去调用其它的方法就会出现野指针错误。
例如:
Person *jerry = [[Person alloc]init]; // retainCount引用计数为1
[jerry eat];...
分类:
移动开发 时间:
2014-07-22 23:05:16
阅读次数:
372
问题现状描述:
如何在PCB中放置单位的 LOGO (单位徽标)?
处理问题方法:
1. 把LOGO 保存成 单色的 BMP 图像.
2. 在PCB 界面下使用 Open\file 命令打开文件”C:\Program Files\Altium Designer 6\Examples\Scripts\Delphiscript Scripts\Pcb\...
分类:
其他好文 时间:
2014-07-22 23:01:54
阅读次数:
389
我写的python代码中遇到编码问题:SyntaxError: Non-ASCII character '\xd3' in file crawler.py
原因:代码中有需要输出中文的部分,但是运行时出现了这个错误;
错误中提示看这个链接:http://www.python.org/peps/pep-0263.html
解决问题的方法:
如果在python中出现了非ASCII...
分类:
编程语言 时间:
2014-07-22 23:00:14
阅读次数:
270
出现下列异常:
/usr/bin/install -c -m 644 jconfig.h /usr/local/jpeg6/include/jconfig.h
/usr/bin/install: cannot create regular file `/usr/local/jpeg6/include/jconfig.h': No such file or directory
...
分类:
其他好文 时间:
2014-07-22 22:59:55
阅读次数:
893
16、Power digit sum215= 32768 and the sum of its
digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number
21000?题目大意:215= 32768 并且其...
分类:
其他好文 时间:
2014-05-02 13:17:49
阅读次数:
1223
??
xml publisher根据条件显示或隐藏列
if@column:condition?>
……
例子:
根据PROJECT_FLAG标签显示或隐藏项目号的列
IF 项目号 EI
IF PROJECT_NUMBER EI
IF:
EI:
注意:对应的PROJECT_FLAG需要同时在头和行上有...
分类:
其他好文 时间:
2014-04-30 22:43:40
阅读次数:
258
./nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory...
分类:
其他好文 时间:
2014-04-30 22:43:38
阅读次数:
346
服务器端采用struts2来处理文件上传。
所需环境:
jquery.js
ajaxfileupload.js
struts2所依赖的jar包
及struts2-json-plugin-2.1.8.1.jar
编写文件上传的Action
package com.ajaxfile.action;
import java.io.File;
import java.io.Fi...
分类:
其他好文 时间:
2014-04-30 22:43:38
阅读次数:
392
我们在使用Excel制作表格整理数据的时候,常常要用到它的函数功能来自动统计处理表格中的数据。这里整理了Excel中使用频率最高的函数的功能、使用方法,以及这些函数在实际应用中的实例剖析,并配有详细的介绍。
1、ABS函数
函数名称:ABS
主要功能:求出相应数字的绝对值。
使用格式:ABS(number)
参数说明:number代表需要求绝对值的数值或...
分类:
其他好文 时间:
2014-04-30 22:23:38
阅读次数:
419
1,按照vmware,导入系统(注意td提供的版本是64位的)
2,linux系统:root/root
3,配置ip:
Enter a cop entry in the linux hosts file (/etc/hosts accessible from the linux command line in the VMware console, ie. c:>vi /etc/host...
分类:
其他好文 时间:
2014-04-30 22:13:39
阅读次数:
503