![]() |
Validation of layout serialisation |
Post Reply ![]() |
Author | |
Aaron Koolen ![]() Groupie ![]() Joined: 22 July 2009 Status: Offline Points: 32 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Smucker ![]() Senior Member ![]() ![]() Joined: 02 February 2008 Status: Offline Points: 156 |
![]() ![]() ![]() ![]() ![]() |
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) |
|
![]() |
|
elmue ![]() Groupie ![]() Joined: 05 June 2010 Location: Germany Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() |
> 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. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |