View Issue Details

IDProjectCategoryView StatusLast Update
0006560JEDI Code LibraryInstallationpublic2023-11-11 23:56
ReporterlimelectAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionVersion 2.5 (Subversion repository/Daily zips) 
Target VersionFixed in VersionVersion 2.5 (Subversion repository/Daily zips) 
Summary0006560: JclSynch
DescriptionDelphi Berlin starter 10.1
Using Demo JvThumbnailDemo.dproj

In JclSynch
line 1078 FHandle := JclWin32.CreateMutex(SecAttr, InitialOwner, PChar(Name));

[dcc32 Error] JclSynch.pas(1078): E2010 Incompatible types: 'Cardinal' and 'Boolean'
TagsNo tags attached.
Fixed in GIT commitd624fd26242bda437c36ce9914c9017e02085ce2
Fixed in SVN revision
IDE versionAll

Activities

limelect

2017-03-27 11:18

reporter   ~0021417

should be Ord(InitialOwner)

AHUser

2017-12-19 20:06

developer   ~0021446

Could it be that you have a different/old JclWin32.pas file somewhere on your computer? The JclWin32.CreateMutex function's second parameter was changed from DWORD to BOOL in 2015.

AlanH

2019-01-28 18:52

reporter   ~0021605

I just got the same error as limelect, my copy of JclWin32.pas uses BOOL. Adding limelect's suggested mod to JclSynch.pas clears the error.

mh

2019-04-13 07:49

reporter   ~0021656

Question: which is the current JCL version and which one has been used by the people having this problem? The report is filed against V2.5, but I am not sure if this is the version actually used.

mh

2019-04-13 09:52

reporter   ~0021660

In the current revision this is the CreateMutex declaration from JCLWin32:
function CreateMutex(lpMutexAttributes: PSecurityAttributes; bInitialOwner: BOOL; lpName: PChar): THandle; stdcall;

The 2nd parameter is a BOOL here and there is copy of some posting from ray Lischner about an issue NT4 had regarding this function.

Since NT4 is no longer relevant the question is, whether this issue is still present in newer Windows versions or not.

Details see JCLWin32.pas line 3016 and following.

AlanH

2019-04-15 14:00

reporter   ~0021701

For my install of JCL, the "readme.txt" file in the docs folder contains:

JEDI Code Library
Release 2.9
Build YYYY
XX-January-2016

Running on Win10Pro/64 under Delphi Tokyo.

AHUser

2023-11-11 23:56

developer   ~0022062

JclWin32.pas's CreateMutex uses "BOOL" since 2015.

Issue History

Date Modified Username Field Change
2017-03-27 10:54 limelect New Issue
2017-03-27 10:54 limelect IDE version => All
2017-03-27 11:18 limelect Note Added: 0021417
2017-12-19 20:06 AHUser Note Added: 0021446
2017-12-19 20:06 AHUser Assigned To => AHUser
2017-12-19 20:06 AHUser Status new => feedback
2019-01-28 18:52 AlanH Note Added: 0021605
2019-04-13 07:49 mh Note Added: 0021656
2019-04-13 09:52 mh Note Added: 0021660
2019-04-15 14:00 AlanH Note Added: 0021701
2023-11-11 23:56 AHUser Status feedback => resolved
2023-11-11 23:56 AHUser Resolution open => fixed
2023-11-11 23:56 AHUser Fixed in Version => Version 2.5 (Subversion repository/Daily zips)
2023-11-11 23:56 AHUser Fixed in GIT commit => d624fd26242bda437c36ce9914c9017e02085ce2
2023-11-11 23:56 AHUser Note Added: 0022062