QT实现特征串攻击检测系统的应用程序bug

我在QT中设置了一个按钮,按下后能够进行特征串攻击检测,调用如下的函数:

void show_detection::on_start_detection_clicked()
{
    QMessageBox::information(this, tr("提醒"), tr("启动成功!"));
    nids_init();
    nids_register_tcp((void*)tcp_callback);
    nids_run ();

}

但是我发现这里nids_run()并不能执行,会跳出这个函数,有没有人可以帮忙解答一下?感谢!

我在命令行窗口已经实现了特征串检测的功能,但是应用到qt中却无法对特征串进行有效的匹配。