View Issue Details

IDProjectCategoryView StatusLast Update
0035204FPCRTLpublic2019-03-08 15:48
Reporter440bxAssigned ToSven Barth 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platform64bitOSWindowsOS Versionprobably all
Product Version3.0.4Product Build 
Target VersionFixed in Version3.3.1 
Summary0035204: The last parameter of BeginThread (ThreadId) is defined as a qword var. This causes problems because ThreadId(s) are 32bit.
DescriptionThe compiler will not compiler a call to BeginThread where a ThreadId defined as a DWORD (which is what a thread id is even in 64bit Windows.)

An overload to BeginThread should probably be added where the last parameter is a DWORD var.
Steps To Reproducecode a BeginThread call using a DWORD as thread id. The program will not compile.
TagsNo tags attached.
Fixed in Revision41636
FPCOldBugId
FPCTarget
Attached Files

Activities

Sven Barth

2019-03-08 15:48

manager   ~0114712

The correct solution is to fix the declaration of TThreadID as that is a target specific type.

Please test and close if okay.

Issue History

Date Modified Username Field Change
2019-03-08 01:35 440bx New Issue
2019-03-08 15:48 Sven Barth Fixed in Revision => 41636
2019-03-08 15:48 Sven Barth Note Added: 0114712
2019-03-08 15:48 Sven Barth Status new => resolved
2019-03-08 15:48 Sven Barth Fixed in Version => 3.3.1
2019-03-08 15:48 Sven Barth Resolution open => fixed
2019-03-08 15:48 Sven Barth Assigned To => Sven Barth