View Issue Details

IDProjectCategoryView StatusLast Update
0006226JEDI VCL00 JVCL Componentspublic2015-09-14 13:20
ReportersebbienAssigned ToAHUser 
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.48 
Summary0006226: TJvComboBox.Add raises Access Violation when CharCase<>ecNormal
DescriptionIf I put CharCase=ecUpperCase, then the first addition of an item to the combobox will raise an access violation, other additions are running ok.

Severity : causes Acces Violation, this is the problematic part
and it was working in Delphi 2010 (old version of JVCL), so it's hard to find when migrating to XE4/XE5
otherwise, its easily workaroundable.

version displayed in about box of delphi for JVCL is 3.48
TagsNo tags attached.


2013-11-18 16:28 (4,355 bytes)


2013-12-01 10:39

developer   ~0020698

Fixed in master branch.

The problem is this:
Comclt32.dll version 5.0 or later: If CBS_LOWERCASE or CBS_UPPERCASE is set, the Unicode version of CB_ADDSTRING alters the string. If using read-only global memory, this causes the application to fail.

A string literal is read only, so "cb.Add('abc')" causes a access violation while "cb.Add('ab' + S)" doesn't. The fix is to call UniqueString on the specified string.

Issue History

Date Modified Username Field Change
2013-11-18 16:28 sebbien New Issue
2013-11-18 16:28 sebbien File Added:
2013-12-01 10:39 AHUser Note Added: 0020698
2013-12-01 10:39 AHUser Status new => resolved
2013-12-01 10:39 AHUser Fixed in Version => Daily / SVN
2013-12-01 10:39 AHUser Resolution open => fixed
2013-12-01 10:39 AHUser Assigned To => AHUser
2015-09-14 13:20 obones Fixed in Version Daily / GIT => 3.48