View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006560 | JEDI Code Library | Installation | public | 2017-03-27 10:54 | 2023-11-11 23:56 |
Reporter | limelect | Assigned To | AHUser | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | Version 2.5 (Subversion repository/Daily zips) | ||||
Target Version | Fixed in Version | Version 2.5 (Subversion repository/Daily zips) | |||
Summary | 0006560: JclSynch | ||||
Description | Delphi 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' | ||||
Tags | No tags attached. | ||||
Fixed in GIT commit | d624fd26242bda437c36ce9914c9017e02085ce2 | ||||
Fixed in SVN revision | |||||
IDE version | All | ||||
|
should be Ord(InitialOwner) |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
JclWin32.pas's CreateMutex uses "BOOL" since 2015. |
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 |