XML : error: Function QFile::open has no address, possibly due to compiler optimizations.

During debug in VS 13, I had a problem with reading my XML file- so I attempted to call the open function from the Watch window. However, I got this error:

  Function QFile::open has no address, possibly due to compiler optimizations.    

that's the code that I wrote with this function:

  QFile* xmlFile = new QFile(filePath.c_str()); //xml file         if (!xmlFile->open(QIODevice::ReadOnly | QIODevice::Text))         {                cout << "Load XML File Problem\n";                return;         }    

How can I fix it? can someone help me?

No comments:

Post a Comment