-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOmniFuture in dynamic array #131
Comments
Provide a minimal working example (http://sscce.org), please. |
I am using Delphi XE. It seems to be something quite simple, but I cannot figure it out... program DeCalTest; {$APPTYPE CONSOLE} uses procedure ProcessMessages; procedure TestFutures; begin TestFutures; end. This program crashed but not always with access violation in OtlSync line 1891 FAwaitedLock.Acquire. |
Sorry, but I can't repeat your problem with Delphi 10.3 Rio and latest OmniThreadLibrary source code. |
I cannot repeat my problem with Delphi 10.3 Rio either. Very strange. |
I call Parallel.Future in a for loop and store IOmniFuture in a array of IOmniFuture. Later I want to iterate through this array and call future.Value for each element. Unfortunately, this code fails occasionly with TList.IndexOutOfBounds. When I wait for the future to complete before adding to dynamic array, everything works fine. What am I doing wrong?
The text was updated successfully, but these errors were encountered: