Lazarus
Programming => Widgetset => QT => Topic started by: snorkel on October 19, 2012, 08:08:04 am
-
I have a app where I dock forms in the tpagecontrol, and in the onclosetabclick event
I do this:
var
aform:tform;
begin
//free the form
aform:=tform(mdi_page_control.ActivePage.Controls[0]);
aform.Close;
end
and it raises a access violation in wincontrol.inc on line 6296 in function TWinControl.GetControl(const Index: Integer): TControl;
The exception is only raised if it's the last tab in the tabsheet, if I have more than one tab open with the docked form they all close until the last one.
This works fine on GTK2 and in Win32/64.
I am running Lazarus 1.0.2 on Kubuntu.
-
open an issue about it and ATTACH VALID EXAMPLE.
-
Ok, will do. Will post it here as well.
Just for kicks I compiled the IDE with QT on windows and the same error is raised there as well.