View Issue Details

IDProjectCategoryView StatusLast Update
0006763JEDI VCL00 JVCL Componentspublic2023-11-11 00:28
ReporterMarkHAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformX64OSWindows 10 OS Version20H2
Product VersionDaily / GIT 
Target VersionFixed in VersionDaily / GIT 
Summary0006763: JvListView sort error when compiled x64
DescriptionCompile as x86 and works as expected

Compile as x64 and access denied error when column sort clicked from windows common components.
Steps To ReproduceAttached zip is Demo jcl\examples\common\filesearch with TListView changed to TJvListView when compiled as x86 the demo functions as expected when compiled as x64 the demo will always crash when a column header is clicked to sort. It seems to be an access denied from Windows common controls. Struggling to find a breakpoint.
TagsNo tags attached.

Activities

MarkH

2022-10-27 22:52

reporter  

JvListView.zip (20,445 bytes)

AHUser

2023-11-11 00:28

developer   ~0022044

The local functions in TJvListView.ColClick caused the problem. In x64 the hidden base pointer parameter (RBP) that is needed to access the outer function's stack variables is always added whereas in x86 it is only added if necessary. This changes the Compare function's signature causing the access violation.

Issue History

Date Modified Username Field Change
2022-10-27 22:52 MarkH New Issue
2022-10-27 22:52 MarkH File Added: JvListView.zip
2023-11-11 00:28 AHUser Assigned To => AHUser
2023-11-11 00:28 AHUser Status new => resolved
2023-11-11 00:28 AHUser Resolution open => fixed
2023-11-11 00:28 AHUser Fixed in Version => Daily / GIT
2023-11-11 00:28 AHUser Note Added: 0022044