473,385 Members | 1,983 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

vb.net system tray app uses too much memory

dk
a very small system tray vb.net app built
using a vb.net component form goes up to
18K for memory usage in the task manager.

any idea why so much memory is being used for
a very small application?

explorer uses only 7.6k

tia,
dk

Nov 20 '05 #1
5 1806
any idea why so much memory is being used for
a very small application?
The framework takes some memory as well, especially during startup. If
your app works in the background most of the time, much of it will be
paged out eventually, so you shouldn't have to worry about consuming
too much physical memory.

explorer uses only 7.6k


Well, Explorer isn't a managed app and doesn't use Winforms.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Nov 20 '05 #2
Explorer on my system uses 4.2 Megs of memory. 7.6K or 18K dont really seem so unreasonable.
"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:eH*************@tk2msftngp13.phx.gbl...
any idea why so much memory is being used for
a very small application?


The framework takes some memory as well, especially during startup. If
your app works in the background most of the time, much of it will be
paged out eventually, so you shouldn't have to worry about consuming
too much physical memory.

explorer uses only 7.6k


Well, Explorer isn't a managed app and doesn't use Winforms.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.

Nov 20 '05 #3
Hi dk,

A small app might pack a powerful punch. Or it might just be a hog!!

I've just run a test app that contains several UserControls on a Form.
That 'only' takes up about 10M (I assume you meant M rather than K). So it
does suggest that there's something going on with your app.

Some questions

What does your app do?
Do you have any bitmaps floating around?
Do you create a Form that you then hide?
Is this figure used immediately or does it creep up to it gradually?

Regards,
Fergus
Nov 20 '05 #4
* "Rick Mogstad" <ri**@NOSPAM.computetosuit.com> scripsit:
Explorer on my system uses 4.2 Megs of memory. 7.6K or 18K dont really seem so unreasonable.


Explorer uses 27 MB on my system.

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
Hi Herfried,

Lol, perhaps you shouldn't store everything in just one folder. ;-))

Do you have Explorer in one process or several, I wonder. I have them
separate so I have a bunch of Explorers ranging from about 3 to 20.

Regards,
Fergus
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: none | last post by:
Hello all, I wrote a shell program a few years ago in VB6 that needs to be modified. The problem I have is this: The SysAdmin uses this shell in place of Explorer, so there is no taskbar. When...
2
by: elziko | last post by:
If I **HAD** to use Process.Kill to end an application that I had no other control over. This application leaves an icon in the system tray. Is there any way in code to force WIndows to refresh...
2
by: Andrew Mueller | last post by:
Hello all, I have created a windows service and now I would like to have a configuration page in the system tray. Basically an icon I can click on which will just interact with an XML file. ...
1
by: Tulasi Kumar | last post by:
I am able to add my application to system tray. The problem here is, I want to add more number of instances(System tray icons) of the a single application to the system tray. How to overcome...
5
by: pamelafluente | last post by:
Hello guys, I have done a small utility and would like that an image be displayed on the the windows tray (on bottom-right of the screen). Also I would like that when one clicks on X (close)...
2
by: ericlangland | last post by:
Hi, I have a small managed code application (windows forms) that executes on startup and immidiatly minimizes to the system tray. It launches and shows the form when I double click it's small...
3
by: =?Utf-8?B?QXNhZg==?= | last post by:
Hi, I have created a System Tray application using C# for .NET 2.0. My PC will not shut down or make a restart if my System Tray application is working at the Tray. Only after I end the process...
3
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory...
1
by: =?Utf-8?B?RW5naW5lZXJpaw==?= | last post by:
I have an application which uses a notification icon in the system tray. When the application is closed the notification icon remains in the system tray until I hover over it with the mouse. How...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.