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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:32:48+00:00 2026-05-20T03:32:48+00:00

I have many forms on an solution in .Net compact framework using all the

  • 0

I have many forms on an solution in .Net compact framework using all the singleton pattern described in Implementing the Singleton Pattern in C# (the 4th version). Some forms are only used very sparingly, while other i must maintain it through very long times. And since i have some memory/processor constraining issues, i need to know what would be the best way to clean resources, using an form.Dispose() or some other method.

  • 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-20T03:32:49+00:00Added an answer on May 20, 2026 at 3:32 am

    You’re writing that “other I must maintain it through very long times”. I’m assuming that you need to access resources on that form. Is that really neccesary? A form is basically meant to perform as placeholder for input elements and showing data, not to be used as a variable container.

    Besides, you don’t need to explicitly call Dispose() on a form, when Show()n the Garbage Collector itself will do that:

    http://msdn.microsoft.com/en-us/library/aw58wzka.aspx

    Dispose will be called automatically if the form is shown using the Show method. If another method such as ShowDialog is used, or the form is never shown at all, you must call Dispose yourself within your application.

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

Sidebar

Related Questions

I have a win forms application that contains a Web Browser control. I need
We have a web application (it is a game) with lots of various forms
Once you’ve taken the leap to start using the jQuery library (or another JS
I am creating a dynamic table control with ASP.NET/C# and the table is being
Got an annoying problem here. I've got an NHibernate/Forms application I'm working through SVN.
I have a WinForms application. That application have a rich functionality. It can create
I have a fields_for tag, where I specify the prefix (lets say for some
I have to make an iPhone app for a company which has a web
Advice needed for backend form submission to aweber and get response. Scenario When customer
I am trying to develop a database model for a recruitment website and I

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.