03-31-2014 04:13 AM
For my app PhotoUploader I need to check all existing photos in the camera folder(s) of the device. It works like a charme for everyone not having more than roughly thousand files in that folder, but for those who have, I'm unable to read that directory...
It's a long-running headless application and the following code is used inside a thread of the service:
QDir dir(path); // /accounts/1000/shared/camera QFileInfoList result = dir.entryInfoList(QDir::Files | QDir::NoDotAndDotDot | QDir::Readable, QDir::Time | QDir::Reversed);
This always crashes on my devices (Z30 & Dev C) with a big amount of files in that directory. I've put a try-catch around and it always throws a "std::bad_alloc" exception when it crashes... I've already tried to switch to dir.entryList(...) but that does not make any difference at all.
Any help would be greatly appreciated!
Solved! Go to Solution.
03-31-2014 04:55 AM
This could be related to this problem here...
03-31-2014 11:45 AM