I got started using OTL for multithreading, and getting great helps!
A variety of using Parallel.ForEach
have been successful. But now I encountered an unaccountable case.
Please see the simple and full code below:
program test;
{$APPTYPE CONSOLE}
uses
OtlParallel;
var
i: integer;
begin
for i := 1 to 1251 do
Parallel.ForEach(0, 0).Execute(
procedure (const num: integer)
begin
end);
end.
When the iteration number exceeds 1250, an error occurs:
'System Error. Code: 1816. Not enough quota is available to process this command'.
Could I be misunderstanding any basic usage of OTL?