Hi I tried multithreadprocs package, explained in wiki: http://wiki.lazarus.freepascal.org/Parallel_procedures
I works well. Cool! Question: how to break out of a paralled loop in a clean way? The problem is finding something from blocks of data. There are more blocks than there are threads. It would be enough to prevent new threads starting. The currently running threads can run to the end. Should I throw an exeption and then catch it outside the ProcThreadPool.DoParallel(...) call? The best solution could be added to the wiki page, too. Juha -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
