473,804 Members | 2,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1821
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.o rg> wrote in message
news:eH******** *****@tk2msftng p13.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.co mputetosuit.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
6966
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 his users run PC Anywhere from the shell, and minimize it, it minimizes to the system tray. With no task bar, there is no system tray, so there is no way to restore the PC Anywhere window. The shell starts PC Anywhere using ShellExecute. I...
2
5693
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 the system tray to remove this icon. Much like Windows does if I was to run the mouse over the system tray. TIA
2
12970
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. What is the best way to do this? 1. How do I use the System Tray and add an icon on it. Yes, probably basic.. and I can do it with VB but have never tried with C#. Andrew Mueller
1
1449
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 this? Any activex controls are there for this? Please Help.......
5
2127
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) the application be minimized and only the tray icon be visible. When one clicks on the tray icon the application shoud return to its normal status (normal/maximized, depending how it was when was minimized).
2
3927
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 icon in the system tray. So far so good. I'd like for the app to maximize outside of the system tray when the Windows + ? combination keys are selected. It seems that I can catch keystrokes when the form is showing but when minimized(Hide()) it in...
3
4712
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 of my System Tray application then my PC is able to do a shut down or Restart. Any help for solving this problem will be much appreciated.
3
7944
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 but the tray icon is not there. If I start the program after Windows has booted up the icon shows every time. I am assuming that the reason is due to the icon being created before the system tray is loaded/running. I have used a timer with...
1
5643
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 can I refresh the system tray to remove the notify icon when the app closes?
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10568
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5516
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4292
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2988
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.