“Debug Assertion Failed” error when changing from release mode to debug mode
I ran my project in release mode and I had no problem. and than I changed the mode to debug mode and I have an error "debug assertion failed". That's the code that caused it: QXmlStreamReader* xmlReader = new QXmlStreamReader(xmlFile); xmlReader->readNextStartElement(); QXmlStreamAttributes attributes; attributes = xmlReader->attributes(); cout << (attributes.value("name").toString().toStdString()); After this cout line I had the error massage. What can be the difference between the modes that caused the difference? I want to know what I need to change for running the project in debug mode.