随笔分类 -  Mistake

摘要:Program received signal SIGILL, Illegal instruction这个错误,发现是直接在printf 的%s中直接使用string类型,而没有使用c字符串格式造成的 阅读全文
posted @ 2015-04-10 17:42 hanframe 阅读(1732) 评论(0) 推荐(0)
摘要:[libprotobuf ERROR google/protobuf/wire_format.cc:1053] String field contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' t... 阅读全文
posted @ 2014-12-05 14:52 hanframe 阅读(7974) 评论(0) 推荐(0)
摘要:应用程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序事件日志,或使用命令行 sxstrace.exe 工具。 阅读全文
posted @ 2014-11-27 16:43 hanframe 阅读(236) 评论(0) 推荐(0)
摘要:1. TypeError: string indices must be integers, not str字符串类型取第index个字符的时候,应该传入int而不是str。如1a='abcdef'2printa[0]3#而不是 print a['0']更常见的情况是把一个string当成了字典在使... 阅读全文
posted @ 2014-07-01 16:46 hanframe 阅读(3971) 评论(0) 推荐(0)
摘要:pyton解析xml时,报错是因为编码的问题,把xml的头改成就好了 阅读全文
posted @ 2014-07-01 11:35 hanframe 阅读(7985) 评论(0) 推荐(0)
摘要:struct中最好使用char来代替string,因为string的大小不是固定的 阅读全文
posted @ 2014-01-18 17:56 hanframe 阅读(391) 评论(0) 推荐(0)
摘要:MySQL_Prepared_Statement::setBlob: can't set blob value on that column, MySQL error code:0, SQLState:1422835736还不知道是什么原因需要进一步查证目前看来是数据库的原因造成的,更新一下数据库,就解决问题了 阅读全文
posted @ 2014-01-16 07:21 hanframe 阅读(219) 评论(0) 推荐(0)
摘要:Floating-point exception同一个程序在一台高版本Linux上运行时没有问题,而在另一台低版本机器上运行报Floating Point Exception时,那么这极有可能是由高版本gcc链接造成的。高版本的gcc在链接时采用了新的哈希技术来提高动态链接的速度,这在低版本中是不支持的。因此会发生这个错误。gcc就是一个编译器。编译出来的软件在低版本操作系统上有些技术不支持造成这个原因。http://zhidao.baidu.com/question/302750348.html?an=0&si=2 阅读全文
posted @ 2014-01-15 17:04 hanframe 阅读(1168) 评论(0) 推荐(0)