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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:28:06+00:00 2026-05-13T16:28:06+00:00

I am building a application with on WM6.1, few question about the resource control.

  • 0

I am building a application with on WM6.1, few question about the resource control.
My app is build by vs2008/.NET CF 3.5

one of the window form,
I place only one webbrowser control, and run the program,
then open the control panel and view the memory usage of applicationm it grow from 25MB to 29MB,nothing special.

After that,
I need place 30 webbrowser control to simulate the repeater to represent some content by following code and re-run the program:

    private void FormTest_Load(object sender, EventArgs e)
    {
        string html ="some words";

        WebBrowser wb;
        for (int i = 0; i < 30; i++)
        {
            wb = new WebBrowser();
            wb.Width = 240;
            wb.Height = 100;
            wb.Top = i * 100;
            wb.Left = 0;
            wb.DocumentText = html;
            this.Controls.Add(wb);
        }
    }

Then , memory usage is grow from 25MB to 31MB.
It only cost more 2MB. Maybe these 2MB is not consumed by webbrowser,it because the html content of those 30 webbrowser.

So my question is,

1.On .NET world, is it generated multiple instance of control UI are still only cost one instance resource ?

2.What is the best way to dispose these 30 webbrowser control on form_unload?
using GC.Collect();? or .net CF will done for me?

Thanks you very much.

  • 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-13T16:28:07+00:00Added an answer on May 13, 2026 at 4:28 pm
    1. The application itself also uses memory. So the first WebBrowsers seems like it costs a lot compared to the other 29. So personally I think it’s nothing fancy. You might want to consider using less WebBrowsers 🙂

    2. .NETCF has a garbage collector and will dispose all objects when you exit your application. Please keep in mind that on Windows Mobile, applications can be minimized as well.
      The WebBrowser control also inherits IDisposable and therefore contains the Dispose method.

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

Sidebar

Related Questions

I'm building application with GWT + GAE on my MAC. In this app i
Unlike this question: Linker Error while building application using Boost Asio in Visual Studio
Im building an application where a few objets outside the mainWindow will need to
I am building an application in .NET (not important what language, it is a
We are building an application on .net, And it is an Image Viewer application
I 'm building an application in ASP.NET MVC which should use Gmail authentication and
(SOLVED) I'm building an application that can create some of its control dynamically, based
We are building application that stores objects to isolated storage using .NET runtime serialization.
Im building an application in ASP.NET MVC that has a workflow component. Im looking
I am building application that required some data from iPhone's Call log(read only). The

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.