Sometimes a SIGSEV ocurrs destroying a Form
Original Reporter info from Mantis: dopidaniel
-
Reporter name: Daniel Simões de Almeida
Original Reporter info from Mantis: dopidaniel
- Reporter name: Daniel Simões de Almeida
Description:
On some occasions, when the form is destroyed, a SIGSEGV occurs ...
Additional information:
I developed a TDI engine interface (tabs) for my programs...
This routine changes the Owner and Parent of a Form so it's anchored within the Tab
On some occasions, when the form is destroyed, a SIGSEGV occurs ...
The error occurs in: TControl.Destroy; line 4190
if CurAnchorSide.FControl = Self then
CurAnchorSide.FControl: = nil;
Apparently, on this situation &LtPos;b>CurAnchorSide&LtPos;/b> has been destroyed ... The Path attached only verifies if CurAnchorSide is still valid.
if Assigned (CurAnchorSide) then
if CurAnchorSide.FControl = Self then
CurAnchorSide.FControl: = nil;
Mantis conversion info:
- Mantis ID: 16571
- Version: 0.9.29 (SVN)