| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 708 人关注过本帖
标题:运行时出现段错误
只看楼主 加入收藏
flyingucla
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2012-4-2
结帖率:50%
收藏
 问题点数:0 回复次数:0 
运行时出现段错误
GuoAdc::GuoAdc(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::GuoAdc)
 {
    adc_fd=open("/dev/adc",0);
    if(adc_fd<0)
    {
        perror("open adc device");
    }
    ui->setupUi(this);
    notifier=new QSocketNotifier(adc_fd,QSocketNotifier::Read,this);
    connect(notifier,SIGNAL(activated(int)),this,SLOT(readadc_value()));
  }这样定义出现段错误了,各位大神帮帮忙
搜索更多相关主题的帖子: activated parent 
2012-04-12 20:42
快速回复:运行时出现段错误
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013528 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved