写文件的问题
if(ff->open( IO_WriteOnly | IO_Append))
{
qDebug("A Sec,wirte file");
QString str ="test test test test test test test test test test test test test test";
QTextStream stream( ff );
QStringList lines;
lines << str;
QStringList::Iterator it;
for ( it= lines.begin(); it != lines.end(); ++it )
stream << *it << "\n";
ff->close();
}
其中ff =new QFile("./test.txt");
就在timer中循环执行这段程序,arm环境下内存总是溢出,而x86环境不会,什么原因啊