-
Content Count
4 -
Joined
-
Last visited
Posts posted by Alexander Pustotin
-
-
Just for information:
The issue https://quality.embarcadero.com/browse/RSP-23874 was raised for the problem.
-
4 hours ago, Günther Schoch said:@Alexander: I would suggest to use the attached threading.pas (see RSP-23466) to quickly crosscheck if 10.3.x has introduced that problem (as the other ones mentioned in RSP-23466)
@Günther: I tried to use the unit attached to https://quality.embarcadero.com/browse/RSP-23466 and still get the AV. I noticed only that the AV can be reproduced rarely rather with original one.
-
Hi all
when switching to Delphi 10.3 Rio I encountered AV in the Parallel Library code. The following somple case can reproduce the issue. I assume that the reason of the problem is a race condition. So it happens in the most of cases but not 100%.
program ParallelForAV; {$APPTYPE CONSOLE} uses System.SysUtils, System.Threading; begin try TParallel.&For(1, 200, procedure (AIndex: Integer) begin Abort; end); except { ignore exceptions } end; end.
I cannot find this issue at https://quality.embarcadero.com.
Could someone confirm the problem?
Best regards
Alexander
AV on finalizing TThreadPool [PPL]
in RTL and Delphi Object Pascal
Posted
@Stefan: at first sight it looks that TThreadPool doesn't wait for all tasks complete but only already started. Maybe I'm wrong but getting details is too time consuming process :).