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 7873563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:33:08+00:00 2026-06-03T02:33:08+00:00

When a user clicks on a WinForms menu item, this code gets executed: //

  • 0

When a user clicks on a WinForms menu item, this code gets executed:

 // this is an Infragistics XamRibbonWindow
var someWpfInfragisticsWindow = new SomeWpfInfragisticsWindow();
ElementHost.EnableModelessKeyboardInterop(someWpfInfragisticsWindow);
someWpfInfragisticsWindow.Show();

The window that is shown is an Infragistics XamRibbonWindow. It also contains an Infragistics XamDataGrid whose DataSource is bound to an IEnumerable property on the view model.

The window also contains a ‘Search’ button that will retrieve a new collection of items from a database, and set the previously mentioned view model property. This causes the grid to display the new collection.

Later on, the user may close the window. No code was written to handle the close.

My questions are:

  1. Does closing the window dispose of the window, its controls and make the collection bound to it GC-able (assuming no other references to the collection exist)?
  2. Does anyone see any potential memory issues with what I’ve described? Perhaps with the way the items displayed by the grid is updated (or anything else)?
  • 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-06-03T02:33:09+00:00Added an answer on June 3, 2026 at 2:33 am

    When the Window is closed if you haven’t held a reference to it it should be available for garbage collection. I don’t see any memory issues with this approach from the details provided.

    Note that Infragistics does have some static classes that will remain after you close the window.

    If you do have memory leak issues using the Infragistics controls and believe that the controls may be the cause you should reach out to Infragistics for assistance determining the cause of the leak. There are links to post on the forums or submit a support case from the get help page.

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

Sidebar

Related Questions

When user clicks on select box , I want to hide the options menu
This is probably a really simple thing. Basically, the user clicks a button and
I have a masked textbox on my winforms application where if a user clicks
A user clicks on a row of a table, and I want to get
When a user clicks, case MotionEvent.ACTION_DOWN is triggered. When the click is released, case
When a user clicks on a list I need a way to update MyCustomAdapter
When the user clicks on a nav link I need the bottom image to
When a user clicks on a links in my Ruby on Rails app, a
When a user clicks a submit button I want the form to be submitted.
Use case: user clicks the link on a webpage - boom! load of files

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.