wmp com in c# application - reduce memory

  • Thread starter Thread starter goRide
  • Start date Start date
G

goRide

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
 
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.
 
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 :))


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]
- (e-mail address removed)



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 -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top