如题,调用如下代码去遍历C盘下所有的文件,Worker是继承QObject,作为工作线程。在Qt应用程序调用到该线程时,去遍历C盘下所有的文件,中途突然报错:Debug Assertion Failed!
void Worker::browseFiles(QString path, std::vector &files)
{
bool res = true;
_finddata_t file;
QString aFilePath = path + "\\*.*";
QByteArray aByteArray = aFilePath.toLocal8Bit();
char const* filePath = aByteArray.data();
/*intptr_t*/long long handle = _findfirst(filePath, &file);
if (handle == -1L)
{
qDebug()

