有这么一段代码:server是成员变量
void serverform::init()
{
qDebug("Msg before running");
if(!server.running())
{
qDebug("into running");
server.start();
}
else
qDebug("not into running");
qDebug("Msg after running");
}
运行结果如下:
Msg before bind
Msg after bind
段错误
大家谁能麻烦给解释下为什么,非常感谢!!