Print Page | Close Window

Validation of layout serialisation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=16244
Printed Date: 06 May 2024 at 11:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Validation of layout serialisation
Posted By: Aaron Koolen
Subject: Validation of layout serialisation
Date 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



Replies:
Posted By: Smucker
Date 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)



Posted By: elmue
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net