QLocalSocket socket;
socket.connectToServer(serverName);
if (socket.waitForConnected(500))
return; // Exit already a process running
m_localServer = new QLocalServer(this);
connect(m_localServer, SIGNAL(newConnection()), this, SLOT(newLocalSocketConnection()));
m_localServer->listen(serverName);
在socket.connectToServer(serverName);处中断了,显示
signalqt.exe 中的 0x00505350 处最可能的异常: 0xC0000005: 读取位置 0x00000004 时发生访问冲突
signalqt.exe 中的 0x00505350 处未处理的异常: 0xC0000005: 读取位置 0x00000004 时发生访问冲突
各位大侠帮忙看看
------解决方案--------------------
晕,都读到0x00000004 位置了,够牛的
是不是某个指针出了问题?