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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:00:01+00:00 2026-05-31T10:00:01+00:00

I had created a program in C#. That program used about 60-70 MB of my

  • 0

I had created a program in C#. That program used about 60-70 MB of my memory.
But when I minimized that program, it required less memory, that is, just 10 MB.

When I maximized or came back to that program it used 20 MB…

Why does this happen?

Is it true that garbage collector gets called when you minimize the progam?

  • 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-31T10:00:03+00:00Added an answer on May 31, 2026 at 10:00 am

    This article explains all:THE MEMORY MYSTERY

    this is an extract from the above site:

    .Net Urban Legend

    It is possible to reduce the working set size of a .Net Windows Forms
    application by minimizing and then maximizing the application
    immediately after it loads. Windows OS trims the working set of
    applications when they are minimized. The memory that was briefly used
    while loading all those assemblies mentioned earlier is trimmed by the
    process of minimizing and maximizing the application. You can
    demonstrate this behavior to yourself by creating and running a
    Windows Forms application with just Form1 and no added code.

    1. Create and run the simple application.

    2. Open the Windows Task Manager and then its Processes Tab. You will see the Task Manager shows your application’s memory usage at approx.
      12.5 MB.

    3. Now minimize your application and then maximize it. Check the Task Manager again. You will see the Task Manager now shows your
      application’s memory usage at approx. 1.5 MB. The memory that was used
      to load assemblies when your application was launched was reclaimed by
      memory management when you minimized the application.

    Did you improve memory management or application performance by minimizing and
    maximizing your application? No. You can find some .Net Windows
    programmers who add code to minimize and then maximize their programs
    thinking that they are optimizing memory. As these programmers have
    shared this technique with others a sort of .Net Urban Legend has been
    born – a programming practice based on fiction not fact. This
    practice is unnecessary because when OS needs the unused memory left
    behind when the assemblies were loaded it will reclaim it
    automatically. In fact, decreasing the size of your application’s
    working set when memory is plentiful may decrease performance.

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

Sidebar

Related Questions

Doug McCune had created something that was exactly what I needed ( http://dougmccune.com/blog/2007/05/10/analyze-your-actionscript-code-with-this-apollo-app/ )
I have a smallish utility library I made that I had created in TFS
Assuming you had some kind of factory-created resource that would still belong to the
I am using vb.net 2010 and I have created a program that uses sockets
I have a set of bit flags that are used in a program I
I had created one HTML page for my experiance. In this i had use
I had created a zip file (together with directory) under Windows as follow (Code
If a set of controls on a WinForm have had DataBindings created and attached
In one of my builds for an iPhone app, I had inadvertently created a
I created a simple test page on my website www.xaisoft.com and it had no

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.