473,594 Members | 2,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

wmp com in c# application - reduce memory

Hi,
i have a small application setting in tray.
The main form is hidden but has a media player component on it which
plays a url link (radio tuner...).
Anyway, my application take about 35MB of ram.
Is there a way to reduce this.
the media player control has no visualtion on it, no control etc...

any ideas?

TIA,
GoRide

Dec 18 '06 #1
2 1793
GoRide,

What is the concern here and how do you know it is taking 35mb of ram?
Is this from Task Manager? If so, then your numbers are bad, as the Task
Manager does not indicate how much memory your application is consuming.

Also, is your application performing negatively? You are using the .NET
framework, which by default, for most any application, takes 10 MB, and then
you are using WMP, which, depending on what you are playing, could take up
much more memory.

I would determine if you really have a memory problem, and by that, I
don't mean, "this number ^looks^ too high". More like, is it negatively
impacting the machines it is installed on. If so, then look at the
performance counters to back it up.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"goRide" <Ti***********@ gmail.comwrote in message
news:11******** **************@ f1g2000cwa.goog legroups.com...
Hi,
i have a small application setting in tray.
The main form is hidden but has a media player component on it which
plays a url link (radio tuner...).
Anyway, my application take about 35MB of ram.
Is there a way to reduce this.
the media player control has no visualtion on it, no control etc...

any ideas?

TIA,
GoRide

Dec 18 '06 #2
Ok, thanks for the reply.
well, my pc is running with no problem and its seems there is no
performance problem.
You note the task manager does not expose the real memory usage. How
does can i check how much my application is consuming from physical
memory.
Anyway, my question was realy about reducing the amoung of memory an
application need to use in order loading and playing the media player
control...
Thanks. (and it does help :))
On Dec 18, 5:31 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.caspershouse. comwrote:
GoRide,

What is the concern here and how do you know it is taking 35mb of ram?
Is this from Task Manager? If so, then your numbers are bad, as the Task
Manager does not indicate how much memory your application is consuming.

Also, is your application performing negatively? You are using the .NET
framework, which by default, for most any application, takes 10 MB, and then
you are using WMP, which, depending on what you are playing, could take up
much more memory.

I would determine if you really have a memory problem, and by that, I
don't mean, "this number ^looks^ too high". More like, is it negatively
impacting the machines it is installed on. If so, then look at the
performance counters to back it up.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard .caspershouse.c om

"goRide" <Tidhar.Nit...@ gmail.comwrote in messagenews:11* *************** ******@f1g2000c wa.googlegroups .com...
Hi,
i have a small application setting in tray.
The main form is hidden but has a media player component on it which
plays a url link (radio tuner...).
Anyway, my application take about 35MB of ram.
Is there a way to reduce this.
the media player control has no visualtion on it, no control etc...
any ideas?
TIA,
GoRide- Hide quoted text -- Show quoted text -
Dec 18 '06 #3

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

Similar topics

226
12443
by: Stephen C. Waterbury | last post by:
This seems like it ought to work, according to the description of reduce(), but it doesn't. Is this a bug, or am I missing something? Python 2.3.2 (#1, Oct 20 2003, 01:04:35) on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> d1 = {'a':1} >>> d2 = {'b':2} >>> d3 = {'c':3}
0
1004
by: Reg | last post by:
Hello, I have a console application (in VB.net) who collects informations to record them in a file. If I reduce the application, it uses much less memory (300 Mo --> 8 Mo) Then it continues to consume memory. If I start again to reduce the application I obtain a fall of the memory again. Would somebody have it an explanation?
2
2946
by: assi | last post by:
Hello all We are developing a large dotnet application, which includes ~ 120 assemblies. (total size of all binaries is ~ 20MB). Our application also references the following dotnet assemblies: System,System.XML, System.Windows.Forms, System.Drawing, System.Data, System.Design. We use dotnet framework 1.1 During initialization, the application scans a directory and loads the assemblies (using Assembly.LoadFrom). It then scans all...
1
2422
by: picard | last post by:
I have seen in various posts that there are tricks to increasing the largest continuous memory block available to an application on a windows machine. I want to prove this is possible using a simple example. Here is my configuration. -I am running vc++ 6.0 on winXP. (Came with book Starting with Visual C++ by Wright) -I have the 3GB switch set at run time
1
1566
by: Arie | last post by:
The question is: I would like to know how to reduce my dot.net application memory usage, I have already tried to the SetProcessWorkingSetSize method with reduced the memory in 7MB, but that’s not good enough. many thanks in davance
1
1686
by: John Batdorf | last post by:
I've created a win32 forms application to run outside of a user's view. It creates an incon in the system tray, and monitors a mail server for a certain message (internal application for the company) my question is, that bare bones before I even do >anything< this application takes close to 10MB of memory. I removed references to System.Data, and other DLLs I don't need. Is the framework that bloated that a simple tray app using...
3
3756
by: Ricardo Q.G. | last post by:
in production environment we started to have a memory consumption problem at "asp.net wp". after a hard work we have discovered that Session.Abandon() does not reduce references to objects added to the session and not reduce memory use. in Session_End function at Global.asax file we have added the following lines of code: == == == == == == == == for(int Item = 0; Item < Session.Count; Item++) Session = null;
4
6151
by: objectref | last post by:
Hi, i found on the net something that it has to do with the large working set of a .net application, describing the process of the CLR loading and all this stuff. It seems that every time CLR needs memory, it requests a bit more than it actually needs so with the below simple code we can "trim" the extra memory and keep the working set down.
2
2748
by: jphelan | last post by:
Ever since I successfully applied some techniques for increasing the speed of my 17 meg. Application; it has only made me hunger for more. First, let me list what I have done so far: 1. Split the application and database into front and back-ends, 2. Increased the load-time of my application by "pre-loading my heaviest forms when the database is initially opened, 3. When forms do open, under, "Filter Lookup" I use, "Never", 4. I set...
0
7874
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8366
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...
1
7997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8227
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6646
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5738
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5402
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();...
1
2383
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
1
1469
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.