View Issue Details

IDProjectCategoryView StatusLast Update
0004605JEDI VCL00 JVCL Componentspublic2008-11-26 08:50
ReportercguserAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.33 
Target VersionFixed in Version3.36 
Summary0004605: JvDBGrid [ and JvDBUltimGrid?] cannot be created in Korean. Access violation occurs
DescriptionDuplicate of 0003026. Seems that the issue had been properly identified but the fix was incomplete: FChangeLinks must indeed be created *before* setting Options.

The following works (only changed the order of the lines)

constructor TJvDBGrid.Create(AOwner: TComponent);
  ...
  FChangeLinks := TObjectList.Create(False); // BEFORE setting Options below
  inherited Options := inherited Options - [dgAlwaysShowEditor];
  ...


while the latest code from Trunk (revision 11987) still causes an AV:

  ...
  inherited Options := inherited Options - [dgAlwaysShowEditor];

  // (obones): issue 3026: need to create FChangeLinks at the beginning
  // so that any change can access the object. It seems that on some
  // foreign systems, the assignment to the Options property triggers
  // NotifyLayoutChange, so it needs the FChangeLinks object
  FChangeLinks := TObjectList.Create(False);
  ...

Suggested fix has been tested on XP with Korean system language. See 0003026 for background information.

PS: Didn't check JvDBUltimGrid, but the original poster mentioned it, so it will also probably be affected.
TagsNo tags attached.

Activities

AHUser

2008-11-26 08:50

developer   ~0015066

Fixed.

Issue History

Date Modified Username Field Change
2008-11-26 07:39 cguser New Issue
2008-11-26 08:50 AHUser Note Added: 0015066
2008-11-26 08:50 AHUser Status new => resolved
2008-11-26 08:50 AHUser Fixed in Version => Daily / SVN
2008-11-26 08:50 AHUser Resolution open => fixed
2008-11-26 08:50 AHUser Assigned To => AHUser