Skip to content

Possible issue with Parallel.BrackgroundWorker in Delphi 13.1 and 64bit. #218

@MShark67

Description

@MShark67

The issue can be reproduced by running the OTL example StringListParser application in 64bit. For me it crashes on startup with
Project StringListParser.exe raised exception class $C0000005 with message 'c0000005 ACCESS_VIOLATION'.

Breaking at the exception puts you in the TOmniTaskExecutor.GetMethodAddrAndSignature procedure at the folowing place:

// Loop over the parameters
while (cardinal(params) < headerEnd) do begin
{$IFDEF OTL_KnowsParamCount}
-> if paramNum >= returnInfo.ParamCount then
break; //while

I hit that in my own applications that create similar background workers. Let me know if I can supply any more info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions