• 5941阅读
  • 1回复

qpe运行错误,高手请进阿 [复制链接]

上一主题 下一主题
离线人月计划
 
只看楼主 倒序阅读 楼主  发表于: 2009-05-18
在执行如下语句时
QAbstractServerInterface *interface =
        qtopiaWidget<QAbstractServerInterface>(0, Qt::FramelessWindowHint);
用远程调试出现如下提示
Program received signal SIGSEGV, Segmentation fault.
0x00074030 in QBasicAtomic::init (this=0x0, x=1)
    at /home/jimmy/qt4/qtopia/qtopiacore/target/include/QtCore/../../../qt/src/corelib/thread/qatomic.h:68
68        { atomic = x; }

无调试执行qpe
出现如下
QLine::unitVector: New line does not have unit length                                                    
QLine::unitVector: New line does not have unit length                                                    
QLine::unitVector: New line does not have unit length                                                    
QLine::unitVector: New line does not have unit length                                                    
QPainterPath::cubicTo: Adding point where x or y is NaN, results are undefined                            
QPainterPath::cubicTo: Adding point where x or y is NaN, results are undefined                            
QPainterPath::lineTo: Adding point where x or y is NaN, results are undefined                            
QPainterPath::cubicTo: Adding point where x or y is NaN, results are undefined    
离线gvim
只看该作者 1楼 发表于: 2009-05-18
接着跟吧,这样也看不出来。 出现 egmentation fault,绝大部分原因都是访问到空指针。或者在内存位置不是4字节位置的访问。还有很少的情况是内存溢出。
你最好是自己找到那个位置。或者别人碰到类似错误能帮到你。
Qt,Qt! 分享Cute之Qt体验
欢迎访问 http://www.cuteqt.com
欢迎订阅 http://www.cuteqt.com/?feed=rss2

快速回复
限100 字节
 
上一个 下一个