View Issue Details

IDProjectCategoryView StatusLast Update
0005114JEDI VCL00 JVCL Componentspublic2011-06-10 16:09
ReporterCyrusAssigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target Version3.40Fixed in Version3.40 
Summary0005114: JvStringGrid component raises EAccessviolation when trying to use ActivateCell method.
DescriptionDelphi 7.0.

---

procedure TJvStringGrid.GMActivateCell(var Msg: TGMActivateCell);
begin
  Col := Msg.Column;
  Row := Msg.Row;
  EditorMode := True;
  InplaceEditor.SelectAll;
end;

When this method is called, InplaceEditor is nil so that is why this error shows up.

Attached fix for JvStringGrid.pas revision 12461.
TagsDelphi 7.0

Activities

2010-01-15 20:36

 

JvStringGrid.pas.patch (354 bytes)
--- JvStringGrid.pas	Fri Jan 08 06:09:12 2010
+++ JvStringGrid.pas	Fri Jan 15 19:37:28 2010
@@ -957,7 +957,8 @@
   Col := Msg.Column;
   Row := Msg.Row;
   EditorMode := True;
-  InplaceEditor.SelectAll;
+  If Assigned(InplaceEditor) Then
+    InplaceEditor.SelectAll;
 end;
 
 procedure TJvStringGrid.InvalidateCell(AColumn, ARow: Integer);

obones

2010-03-08 15:22

administrator   ~0017237

Thanks, this is now fixed in SVN

Issue History

Date Modified Username Field Change
2010-01-15 20:36 Cyrus New Issue
2010-01-15 20:36 Cyrus File Added: JvStringGrid.pas.patch
2010-01-15 20:37 Cyrus Tag Attached: Delphi 7.0
2010-03-08 15:22 obones Note Added: 0017237
2010-03-08 15:22 obones Status new => resolved
2010-03-08 15:22 obones Resolution open => fixed
2010-03-08 15:22 obones Fixed in Version => Daily / SVN
2010-03-08 15:22 obones Target Version => 3.40 - not yet released
2011-06-10 16:09 obones Fixed in Version Daily / SVN => 3.40