Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7445185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:45:36+00:00 2026-05-29T11:45:36+00:00

i read Here and bit confused about the unregistering events. means i have button

  • 0

i read Here
and bit confused about the unregistering events. means i have button and registered for click event whether its required unregitser click event explicitly in page unload event.
Because all most UI elements will registered for some of the events.

In the model and viewmodel i can unregistered event explicitly (like loadCompleted)

Is it required to un-register the events of all UI Elements to reduce memory leak?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:45:38+00:00Added an answer on May 29, 2026 at 11:45 am

    You only need to unregister eventhandlers that would keep the View in memory.

    So if you Keep the ViewModel object (e.g. to pass it on to another view) any binding between the View and ViewModel might keep the View in memory (reachable). If you do not keep the ViewModel you ar enot in danger of this. (Yet be very certain that you do not keep a reference to the ViewModel)

    A good description of this problem (and solutions) can be found here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read here http://lostechies.com/jimmybogard/2009/09/18/the-case-for-two-way-mapping-in-automapper/ about how you probably shouldn't be trying to un-flatten
I'm a bit confused by the documentation here. I have a transaction, which start
I'm a bit confused about the memory leaks in PHP. I've read that PHP
I've read quite a bit both here ( Audio Framework in iPhone ) and
I read here about std::auto_ptr<>::operator= Notice however that the left-hand side object is not
I have an XML file that I'm trying to read from here , and
I've read the documentation here . I have an action, cook, which is applied
So, I'm a bit confused here. I'm slowly progressing into ajax or HTML5 SSE,
I have read some where that ruby fork are COW friendly ok here the
I'm running Python 2.7.2 (64 Bit) on Windows 7. I'm a little confused about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.