View Issue Details

IDProjectCategoryView StatusLast Update
0005212JEDI VCL00 JVCL Componentspublic2010-10-08 15:22
ReporterBiblinAssigned Toobones 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionsuspended 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0005212: JvDocking: Crash on SaveDockTreeToFile after closing popup panel
DescriptionPerforming the following will either result in an access violation in TTJvDockZone.GetControlName if ChildControl is nonsense, or the "Docked control must have a name" exception will be raised.


Steps to reproduce:

Use code snippet below
Click Button1 once to create and dock form2
Click unpin icon to collapse form2 to side
Click Button1 to float and close form2
Click Button2 to save dock tree to file


procedure TForm1.Button1Click(Sender: TObject);
begin
    if Form2 = nil then
    begin
        Form2 := TForm2.Create(nil);
        Form2.Show;
        Form2.JvDockClient1.DockStyle := JvDockVSNetStyle1;
        Form2.ManualDock(JvDockServer1.LeftDockPanel, nil, alBottom);
    end else
    begin
        DoFloatForm(Form2);

        Form2.Free;
        Form2 := nil;
        Application.ProcessMessages;
    end;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
    SaveDockTreeToFile('c:\temp\docktree.txt');
end;
TagsNo tags attached.

Activities

Biblin

2010-03-30 11:10

reporter   ~0017332

Can manually revert popuppanel back to pinned state before closing it as a workaround

if Form2.Parent is TJvDockVSPopupPanel then
        TJvDockVSPopupPanel(Form2.Parent).DoShowControl(Form2);

obones

2010-06-07 13:47

administrator   ~0017447

Could you please provide the zipped sources of a sample application showing this?

obones

2010-10-08 15:22

administrator   ~0017788

No reaction, suspending the issue

Issue History

Date Modified Username Field Change
2010-03-29 16:47 Biblin New Issue
2010-03-30 11:10 Biblin Note Added: 0017332
2010-06-07 13:47 obones Note Added: 0017447
2010-06-07 13:47 obones Status new => feedback
2010-10-08 15:22 obones Note Added: 0017788
2010-10-08 15:22 obones Status feedback => resolved
2010-10-08 15:22 obones Resolution open => suspended
2010-10-08 15:22 obones Assigned To => obones