Switching wizard pages eats up memory

Wizard for WPF Forum

Posted 6 years ago by Andreas Gruber
Version: 12.2.0573
Platform: .NET 4.0
Environment: Windows 7 (32-bit)
Avatar

Hello!

In our application we have a dashboard control to visualize key figures. The dashboard is a grid with 5 sections. 4 of the sections contain a user control that consists of a actipro wizard with two pages. Each page contains a diagramm to visualize the key figures. In the code of the user control with the wizard, we are switching between the two page in an interval of 10 seconds.

As I left the open dashboard running for a while, I noticed the increasing RAM of our application until I got a SystemOutOfMemory Exception. Trying to reproduce the error I found that the source was the dashboard.

1) I disabled the interval of the user control with the wizard so that the pages were not switched any longer. Memory usage kept stable.
2) Interval enabled but the styles and transitions that the wizard and the pages are using have been removed. Memory fast growing.
3) I removed the code that inject the controls on the second page. Memory still growing
4) Removed all controls that are injected on the wizard pages. Memory stable
5) To exclude the other user controls that are used, I changed the XAML and replaced the wizard and its pages with two content controls whose visibility I am changing when the timer interval is triggered. The memory usage keept stable.

As the dashboard is used in a larger application with prism and MVVM. Please inform me what you need so that you can reproduce the behaviour.

Regards

Comments (1)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Andreas,

We aren't aware of any memory leaks in Wizard at this time.

It would be most helpful if you can make a new simple sample project with 2-3 pages that we can next/previous through to see the memory increasing.  Please don't use MVVM or anything and keep it as basic as possible while still repro'ing the problem.  Then send that over to our support address and reference this post.  Please rename the .zip file extension so it doesn't get spam blocked.

Also before you send it, please verify that objects are being retained by using a true .NET memory profiler like the one at memprofiler.com.


Actipro Software Support

The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.