gabr42 / OmniThreadLibrary

A simple and powerful multithreading library for Delphi
http://www.omnithreadlibrary.com
Other
466 stars 142 forks source link

OmniThreadLibrary Issue - WaitFor() Doesn't executes the task for some random records #165

Open Hrushi-UMANG opened 3 years ago

Hrushi-UMANG commented 3 years ago

We are working on a legacy application that is built using Delphi XE6. We have used the Omni Thread library and have version 3.05: 2015-09-07 installed.

We are facing an issue while executing this OTL code. When the control reaches line aTaskControl.WaitFor(10000); it doesn't execute any task. It skips and terminates the thread. This is happening randomly and more specifically in our Production environment whereas in the Dev environment it works fine.

In our task, we are connecting to our database and performing some checks and updating the records based on some business logic.

Any inputs or suggestions will be really helpful and appreciated.

Thanks.