mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 16:38:17 +02:00
IdeDebugger: Breakpoint dialog, fix crash due to unexpected handle creation in VTV
This commit is contained in:
parent
110c35c9a3
commit
a3f455d604
@ -59,6 +59,7 @@ type
|
||||
protected
|
||||
procedure SetVisible(Value: Boolean); reintroduce;
|
||||
procedure VisibleChanged; override;
|
||||
procedure CreateWnd; override;
|
||||
public
|
||||
constructor Create(TheOwner: TBreakPointsDlgBase; ATree: TDbgTreeView; ANode: PVirtualNode;
|
||||
ABrkGroup: TIDEBreakPointGroup;
|
||||
@ -277,6 +278,12 @@ begin
|
||||
FTree.NodeHeight[FNode] := min(40, Max(15, ToolBar1.Height));
|
||||
end;
|
||||
|
||||
procedure TBreakpointGroupFrame.CreateWnd;
|
||||
begin
|
||||
inherited CreateWnd;
|
||||
FTree.NodeHeight[FNode] := min(40, Max(15, ToolBar1.Height));
|
||||
end;
|
||||
|
||||
constructor TBreakpointGroupFrame.Create(TheOwner: TBreakPointsDlgBase;
|
||||
ATree: TDbgTreeView; ANode: PVirtualNode; ABrkGroup: TIDEBreakPointGroup;
|
||||
AGroupKind: TBreakpointGroupFrameKind);
|
||||
|
@ -188,7 +188,6 @@ type
|
||||
procedure JumpToCurrentBreakPoint;
|
||||
procedure ShowProperties;
|
||||
protected
|
||||
procedure CreateWnd; override;
|
||||
procedure AcceptGroupHeaderDrop(ADroppedGroupFrame: TBreakpointGroupFrame; ATargetNode: PVirtualNode); override;
|
||||
procedure DoBreakPointsChanged; override;
|
||||
procedure DoBeginUpdate; override;
|
||||
@ -1627,22 +1626,6 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TBreakPointsDlg.CreateWnd;
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
inherited CreateWnd;
|
||||
BeginUpdate;
|
||||
try
|
||||
ClearTree;
|
||||
for i := 0 to DebugBoss.BreakPointGroups.Count - 1 do
|
||||
GetNodeForBrkGroup(DebugBoss.BreakPointGroups[i]);
|
||||
UpdateAll;
|
||||
finally
|
||||
EndUpdate;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TBreakPointsDlg.DoBreakPointsChanged;
|
||||
var
|
||||
i: Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user