Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Crash with 9.81
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash with 9.81

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: Crash with 9.81
    Posted: 10 July 2006 at 4:54am
Hello,

SInce a year we have a functin Reset Pane Layout.
On program start we define the default layout.
this layout we save as default layout.
Then we load the last layout.
And we have a menu entry 'Reset Layout', with this we set the layaout to
the default.
In 9.60 it work correct. But since we have changed to 9.81, the app crash.

Code from Save default layout.

// Get default Pane Layout
m_pDefaultLayout = GetDockingPaneManager()->CreateLayout();
GetDockingPaneManager()->GetLayout(m_pDefaultLayout);
DWORD dwPaneCount = GetDockingPaneManager()->GetPaneList().GetCount();

// Load last PaneLayout
m_pPaneLayout = GetDockingPaneManager()->CreateLayout();
if (m_pPaneLayout->Load(_T("PaneLayout")))
    {

    // Es ist eine Pane dazugekommen, damit sie aktiviert wird,
    // darf sie nicht durch ein altes Layout gesperrt werden.
    if (dwPaneCount != m_pPaneLayout->GetPaneList().GetCount())
        GetDockingPaneManager()->GetLayout(m_pPaneLayout);
    else
        GetDockingPaneManager()->SetLayout(m_pPaneLayout);
    }
else
    GetDockingPaneManager()->GetLayout(m_pPaneLayout);


greetings
    Jimmy

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2006 at 9:20am
Hello,
Code looks ok, please show call stack of error.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2006 at 7:37am
Hang in Pane.exe sample from 9.81.
Pane.exe from V10.2.0 will work.
But i don't find any entry in release_notes.htm.

Reproduce hang.
Remove Pane.exe settings from registry.
Start pane.exe
dbkclick text 'Pane 9'.
Change Layout under 'Docking Pane' menu to run mode.

    Jimmy


Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2006 at 9:50am
Hi,
 
Yes, agree, was problem with floating panes when layout changed.
Was fixed already.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2006 at 10:41am
why not docu in release_notes.html ???

Back to Top
kram617 View Drop Down
Newbie
Newbie


Joined: 24 February 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote kram617 Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2007 at 12:12pm
I am having this same SetLayout problem with v9.70 of Xtreme Tookit Pro.
 
Is there currently a workaround for this?  It doesn't crash every time, so I would guess a certain chain of events needs to happen first to cause the issue.  If I knew when a crash was going to happen, it would seem this could somehow be preventable.
 
Upgrading isn't an option at this time.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2007 at 1:35am
Problem only apper when floating windows exist. as workaround you can close all panes and then set new layout.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.