• 4005阅读
  • 0回复

Help!内存溢出问题 [复制链接]

上一主题 下一主题
离线kissworld
 
只看楼主 倒序阅读 楼主  发表于: 2009-10-18
写文件的问题

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环境不会,什么原因啊
快速回复
限100 字节
 
上一个 下一个