今天调试QT代码时,遇到如下错误:
_Block_Type_Is_Valid(pHead->nBlockUse)
原因可能我在代码里使用了如下语句:
classTripServer : public QTcpServer
{
Q_OBJECT
...
private:
QTcpSocket tcpsocket;
};
一、
1、You get the error because of the order in which the stack allocated objects get destructed when they get out of scope.
2、This is the recommende