I managed to retrieve the error also doing a more simple loop:
int main(int argc, char *argv[]){
cout << "Test on a glpk application using Qt Threads" << endl<<endl;
Thread wThread;
for (uint y=0;y<5000;y++){
wThread.start(); // job done from the other thread
wThread.wait();
}
cout <<"All done without errors (crashing)"<<endl;
return 0;
}
int main(int argc, char *argv[]){
cout << "Test on a glpk application using Qt Threads" << endl<<endl;
Thread wThread;
for (uint y=0;y<5000;y++){
wThread.start(); // job done from the other thread
wThread.wait();
}
cout <<"All done without errors (crashing)"<<endl;
return 0;
}
To copy to clipboard, switch view to plain text mode
The error I have from glpk is:
Assertion failed: xlcmp(env->t_last, t) <= 0
Error detected in file
glplib10.c at line 109
I really do not understand why this external library crash if I put it on an external thread that I run consecutivly while it works whitout problems if I run it in the main thread.
Bookmarks