#ifndef PATH_MAX // If not defined yet : do it
# define PATH_MAX 2048
#endif
-
+#include <creaImageIOGimmick.h>
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
namespace creaImageIO
//==============================================================
Gimmick::~Gimmick()
{
+
if(mSettings!=0)
{
mSettings->writeSettingsFile();
#include <wx/utils.h>
#include <creaImageIOSystem.h>
-
+#include <creaImageIOGimmick.h>
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
namespace creaImageIO
{
// std::cout << "#### MultiThreadImageReader::MultiThreadImageReader("
// << " #threads= " << number_of_threads <<" )"<<std::endl;
+ mDone = false;
// Create the threads
for (int i=0; i<number_of_threads; i++)
{
// std::cout << "#### MultiThreadImageReader::Stop()"
// <<std::endl;
// std::cout << "Sending stop order to the threads..."<<std::endl;
+ if (mDone) return;
ThreadedImageReaderListType::iterator i;
for (i =mThreadedImageReaderList.begin();
delete j->first;
}
mImages.clear();
+ mDone = true;
}
//=====================================================================