I have tried loading the image with QImage::load , and it succesfully reads.
But if I load some large data via an external library (non Qt) before calling QImage::load, the QImage::load failed (I changed their calling order in the code).
Then, I first loaded QImage::load and after that I called the external library's function, QImage::load worked perfect. So, I assume that the external library won't let QImage::load either with process priority or some other cause. The external library is openscenegraph and the scenarios seem like this:
The working scenario:
image->load("filePath1");
osg::Node * node=osgDB::readNodeFile("someOtherLargeFile");
QImage *image=new QImage();
image->load("filePath1");
osg::Node * node=osgDB::readNodeFile("someOtherLargeFile");
To copy to clipboard, switch view to plain text mode
The failed scenario:
osg::Node * node=osgDB::readNodeFile("someOtherLargeFile");
image->load("filePath1");
osg::Node * node=osgDB::readNodeFile("someOtherLargeFile");
QImage *image=new QImage();
image->load("filePath1");
To copy to clipboard, switch view to plain text mode
Bookmarks