Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - CXTPDockingPaneLayout::LoadFromFile failure
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPDockingPaneLayout::LoadFromFile failure

 Post Reply Post Reply
Author
Message
tuno View Drop Down
Newbie
Newbie


Joined: 08 June 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote tuno Quote  Post ReplyReply Direct Link To This Post Topic: CXTPDockingPaneLayout::LoadFromFile failure
    Posted: 08 June 2009 at 3:17pm
I have code that looks like this:

   CXTPDockingPaneLayout layoutNormal( &m_paneManager );

   BOOL bSuccess = layoutNormal.LoadFromFile( filename, layoutname );

I've used this code with success for quite some time, and when I recently tried to enhance the program to load various layouts from various files, I ran into a situation where a valid file name results in a load failure with the following message in the debugger's output window:

Warning: CXTPPropExchangeXMLNode::LoadFromString failed. ParseError.Reason = Only one top level element is allowed in an XML document.

The file being loaded is the same file I've already loaded successfully many times and has only one top level node, so I'm puzzled about the "only one top level element ..." message.

Help ... ?

-ted in AZ
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: 09 June 2009 at 2:04am
Hi,
Send to support@codejock.com this XML file that generates such error.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
tuno View Drop Down
Newbie
Newbie


Joined: 08 June 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote tuno Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2009 at 8:34am
I cannot -- the code is in a "secure environment".

The XML file is one of the ones created by the SaveToFile() method, without modification.
Back to Top
tuno View Drop Down
Newbie
Newbie


Joined: 08 June 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote tuno Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2009 at 8:58am
Oleg I have an update to my question. After fixing a seemingly unrelated problem elsewhere in my code, the LoadFromFile() method now works how I expect it to (!).

But a new problem is that my application's panes are not being restored properly according to the loaded layout -- it does not undock/redock panes according to what's in the layout file. I'm new at using CodeJock so I'm in the process of walking through our code in more detail (I'm the maintainer, not the author), but if you happen to have any quick ideas, I would be most thankful!

-ted
Back to Top
kstowell View Drop Down
Admin Group
Admin Group


Joined: 25 January 2003
Location: MIchigan, USA
Status: Offline
Points: 496
Post Options Post Options   Thanks (0) Thanks(0)   Quote kstowell Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2009 at 1:22pm
Please submit your request to support@codejock.com so we can verify your product license, thanks!
Kirk Stowell, President and CEO
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.141 seconds.