locked
Application is getting slower after certain use

    Question

  • Hi,

    I am building windows store app using Caliburn Micro MVVM design pattern. My application is getting slower when I use it for certain period. I checked memory of the application and it is increasing and not getting released.

    When I restart the application it is working perfectly fine for some time.

    Please help.


    Tuesday, March 25, 2014 1:30 AM

Answers

  • try to do some performance analyzing. memory analyzing would be good start.

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    • Marked as answer by sachinPophale Monday, April 07, 2014 2:13 AM
    Tuesday, March 25, 2014 1:02 PM
  • Do you attach event handlers, but never detach them?

    ie,

    Event += myeventhandler;

    Without having a corresponding:

    Event -= myeventhandler;


    Darin R.


    Monday, March 31, 2014 3:56 PM

All replies

  • Please describe more about what you're seeing.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Tuesday, March 25, 2014 12:25 PM
    Moderator
  • try to do some performance analyzing. memory analyzing would be good start.

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    • Marked as answer by sachinPophale Monday, April 07, 2014 2:13 AM
    Tuesday, March 25, 2014 1:02 PM
  • I used memory profiler tool and found below isues

    1) 3 types have instances that are directly rooted by an EventHandler. This can
    indicate that an EventHandler has not been properly removed. Investigate the types below for more information.       2) 9 types have instances that have been disposed but not GCed. 3) 21 types have instances that are directly rooted by a delegate. This can indicate that the delegate has not been properly removed.

    Friday, March 28, 2014 8:58 PM
  • Do you attach event handlers, but never detach them?

    ie,

    Event += myeventhandler;

    Without having a corresponding:

    Event -= myeventhandler;


    Darin R.


    Monday, March 31, 2014 3:56 PM