Jump to content


janszpilewski

Member Since 12 Aug 2016
Offline Last Active Aug 12 2016 08:15 PM
-----

Topics I've Started

Problem with ioEndEditOnUnfocus

12 August 2016 - 02:01 PM

Hello,

 

I am on Delphi XE5 and use TNextInspector6 6.0.15. I noticed that if ioEndEditOnUnfocus is set, procedure TNxCustomInspector6.EndEdit()  is called twice in a reentering way when another row is selected.

 

First time from TNxCustomInspector6.SetSelectedNode() and the statement:

 

FInplaceEdit.Parent := nil;

 

invokes a chain of handlers that finally calls TNxCustomInspector6.DoExit() which invokes colliding, reentering EndEdit() and causes a crash.

 

To deal with it I added a guard FEndingEdition to block reentering EndEdit(). Maybe this collision can be avoided in a more structured way? 

 

This problem can be easily reproduced with i.e. Events Demo.