whut_kioc1
whut_kioc1

Reputation: 1

How to correctly use next() of tinyxml in QT? My project can be debugged but not released

I am using the tinyxml library to make a QT interface project. The problem now is that it can only be debugged and cannot be released. According to my positioning, there should be a problem with the “Next()” method in TiXmlAttribute. When I use this function, it will appear seg error. And it can be run without using it.Is there any solution, because I have to use this function.

    TiXmlAttribute *pAttr;
    pAttr = pEle->FirstAttribute();// the first attribute
    while(nullptr != pAttr){
        pAttr = pAttr->Next();
    }

Upvotes: 0

Views: 38

Answers (0)

Related Questions