We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Serialized xml file getting bigger and bigger (version 7.2)

Thread ID:

Created:

Updated:

Platform:

Replies:

94924 Jun 10,2010 05:43 PM Jul 6,2010 11:37 AM General Discussion 3
loading
Tags: General Discussion
Henry Nguyen
Asked On June 10, 2010 05:43 PM

I have a mainFrameBarManager with AutoPersistCustomization = true and AutoLoadToolBarPositions = true, and AppStateSerializer with SerializeMode.XMLFile. My serialized xml file get bigger and bigger when the application exits, but I can not figure out what is wrong. I try remove most of of my runtime BarItems, but it does not help at all.

Arulraj A [Syncfusion]
Replied On June 18, 2010 04:37 AM

Hi Henry,

Thanks for your interest in Syncfusion Products.

I am afraid that I can’t reproduce the issue. Since we use AppStateSerializer with SerializeMode.XMLFile and persist it for saving the Bar state and while loading we use LoadBarState() method to restore the Customized settings, so there is no need to use the property AutoPersistCustomization = true and AutoLoadToolBarPositions = true. Please refer the sample attached below where the xml file is stored in bin->Debug folder.

Here is the sample for your reference.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=MainFrameManager_Menustate-204131882.zip

Please Let me know if you have any further concerns.

Regards,
Arulraj.A

Henry Nguyen
Replied On July 2, 2010 06:25 PM

The sample is not worked with singleton AppStateSerializer and AutoPersistCustomization = false (look at the attached project). If I set AutoPersistCustomization = true then the state is saved, but some bar items being added and removed at run time are saved in the xml file too. These run time bar items (with changed ids) will make the xml file getting bigger and bigger.





MainFrameManager_Menustate_2ae47b4a.zip

Vallarasu S [Syncfusion]
Replied On July 6, 2010 11:37 AM

Hi Hendry,

Thanks for the update.

The file size does not rely only on the items added to the MainFrameBarManager, Once an Item gets removed from the BarManager all of its references are removed immediately, so this won’t cause any issues.

The file size greatly depends on the actions that are performed with the BarItems because the actions are recorded and maintained for internal implementations, say for example ‘Recently used Items’. And these actions will be removed once you start the application again and closing it without doing any actions with the BarItems.

Please let us know if you have any concerns on this.

Regards
Vallarasu S.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;