exceptions in layout editor
Hi,
We are upgrading from RbPro 7.03 tot 11.05R3 (Delphi 2006)
We have our own layout editor derived from TppDesignerWindow. We can now
produce two exceptions in the editor, not sure if it caused by our code.
1. Pressing CTRL/SHIFT+arrow key with no control selected gives an "index
out of bound" exception in TppDesignSelectionController.Nudge or NudgeSize
on the line
FDesignGuideController.UpdateGuides(Selection.DesignControls[0]);
SelectionDesignControls is empty when nothing is selected. I added a test on
Selection.Count > 0 witch seems to solve it.
2. When inplace-editing a Text label pressing enter gives a FastMem "virtual
function called on a freed object" exception. I think the reason is that in
TppInPlaceEditorText.ehEdit_KeyPress the editor is freed with EndEdit but
the Key is not set #0. So a WM_CHAR is send to the just freed editor.
Key := #0 before EndEdit solves it for us now.
Regards,
Max Paay
Quadrant Software bv.
The Netherlands.
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4341 (20090817) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
We are upgrading from RbPro 7.03 tot 11.05R3 (Delphi 2006)
We have our own layout editor derived from TppDesignerWindow. We can now
produce two exceptions in the editor, not sure if it caused by our code.
1. Pressing CTRL/SHIFT+arrow key with no control selected gives an "index
out of bound" exception in TppDesignSelectionController.Nudge or NudgeSize
on the line
FDesignGuideController.UpdateGuides(Selection.DesignControls[0]);
SelectionDesignControls is empty when nothing is selected. I added a test on
Selection.Count > 0 witch seems to solve it.
2. When inplace-editing a Text label pressing enter gives a FastMem "virtual
function called on a freed object" exception. I think the reason is that in
TppInPlaceEditorText.ehEdit_KeyPress the editor is freed with EndEdit but
the Key is not set #0. So a WM_CHAR is send to the just freed editor.
Key := #0 before EndEdit solves it for us now.
Regards,
Max Paay
Quadrant Software bv.
The Netherlands.
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4341 (20090817) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
This discussion has been closed.
Comments
There are now patches available for RB 11.05 for both of these items.
Registered users of RB 11.05 can email support@digital-metaphors.com and
request them.
Thanks for reporting these two issues. (The second issue I could not
duplicate, but made the modification you recommend).
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
BTW: The second issue can only reliably reproduced if you test with FastMem4
with full debugging enabled (ie {$define FullDebugMode} in
FastMM4Options.pas).
Regards,
Max Paay
Quadrant Software bv.
The Netherlands.
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4344 (20090818) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com