Posted 5 years ago by Emir Dizdarevic
Version: 17.1.0651
Platform: .NET 4.7
Environment: Windows 10 (64-bit)


We have som issue regarding calling

_layoutState = new DockSiteLayoutSerializer().SaveToString(dockSite);

Since we are saving the docksite ever 10 seconds, we call the DockSiteLayoutSerializer().SaveToString method every 10th of a second. But for some reason it seems that there is a memory leak over time. 

Are we saving the docksite correct? Or is this a bug? 

Any help would be nice

Best Regards


Comments (1)

Answer - Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Emir,

I believe there is a bug in core WPF XML serializers that does have a minor leak.  The workaround is to create a single static DockSiteLayoutSerializer instance and reuse that when saving or loading the layout.  That avoids that core framework bug since only one instance is ever created.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.