There's a problem with the latest version of NextInspector. When there's an open InplaceEditor while closing your form (destroying NextInspector) you'll get an access violation.
Cause:
In TNxCustomInspector.DoExit() there's a call to ApplyTextBox(true) to cancel editing a specific item. At the time ApplyTextBox(true) gets called the item's editor has already been destroyed by TNxPropertyItem.Destroy(). In consequence there's an access violation at the marked line.
CODE
procedure TNxCustomInspector.ApplyTextBox(Cancel: Boolean);
var
Accept: Boolean;
begin
// ...
if Assigned(FEditingItem) then
begin
if FEditingItem.AsString <> FEditingItem.Editor.AsString then // * AV
// ...
end;
end;
var
Accept: Boolean;
begin
// ...
if Assigned(FEditingItem) then
begin
if FEditingItem.AsString <> FEditingItem.Editor.AsString then // * AV
// ...
end;
end;
It seems like TNxCustomInspector.FEditingItem does not get updated when the corresponding item has been deleted.
Can someone confirm/reproduce this bug?
Markus










