Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Validation of layout serialisation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Validation of layout serialisation

 Post Reply Post Reply
Author
Message
Aaron Koolen View Drop Down
Groupie
Groupie


Joined: 22 July 2009
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Koolen Quote  Post ReplyReply Direct Link To This Post Topic: Validation of layout serialisation
    Posted: 21 February 2010 at 7:58pm
Hi everyone. I'm after some best practices/solutions to validating the layout that is saved for Docking pane managers. My layout gets saved to the registry OK, but if something has corrupted the registry when I load it back in, the application will crash when restoring the layout.

Is there a way to validate the layout before it's loaded? If not, what's the best practice to handle this stuff?

Can it even be reliably used?
Product: Xtreme ToolkitPro v13.3.0 (MFC)
Platform: Windows XP (32bit) - SP 3
Language: Visual C++ 6
Back to Top
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2010 at 11:25am
I save to a file instead, because it's easier to support. (Tell the customer to delete a file rather than edit the registry.)
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)

Back to Top
elmue View Drop Down
Groupie
Groupie


Joined: 05 June 2010
Location: Germany
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote elmue Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2010 at 12:00pm
> Tell the customer to delete a file rather than edit the registry

This is an ugly workaround.
Whenever an application crashes there is a severe bug that should be fixed.

The docking pane manager has a severe bug:
I can confirm that: After moving around the panes and closing and re-opening the app about 10 to 20 times the application will not open anymore:
It crashes.
Memory gets corrupted.
This is a severe bug.
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.230 seconds.