|
John Simmons / outlaw programmer wrote: Is there a utility that will track memory usage better than Task Manager?
that's rhetoric I trust.
I usually have a timer (Windows.Forms.Timer) that periodically (1Hz) updates some numbers
in the GUI (a statusbar label); I look at:
Environment.WorkingSet for memory leaks,
GetGuiResources(processHandle, 0) for missing Dispose() calls on GDI objects,
etc.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
In addition to the other comments...
I don't think I have to tell you, that sounds like a memory leak bug to me.
If you've eliminated the possible causes in your code then it's the player.
You know that already
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
What version of Flash Player? There are issues with older versions.
|
|
|
|
|
I believe we even tried the latest one, and it still does it.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Have you profiled your app? It's useful to do this with a utility like CLR Profiler.
|
|
|
|
|
Have you tried using ProcessXP ^ by Sysinternals or Perfmon?
|
|
|
|
|
The CLR Profiler is incredibly useful for this. If the CLR GC itself is not continually allocating more and more memory, the problem is not your app - it's the FLV player, as you seem to already expect.
I'm curious why you're seeing that though. I don't seem to have that problem when I'm watching an FLV using FLV Player, for instance, or when I'm watching things in my browser. This is one of those things that I would absolutely not expect to see in a commercial, widely released, widely used product - simply because I'd expect the bugs to be solved long, long ago.
I wonder if there's not some sort of cleanup or clear function in the player you should be calling after every data pass.
Curious: Does the increase in memory consumption seem to match the amount of data you're sending to the player (decoded, of course)? That is, if you're sending it a 1KB chunk of FLV data, does the amount of decoded data correspond to the increase in memory usage by the OS?
It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein
|
|
|
|
|
Hello,
I have a solution and it has 2 projects. When I try to open a project it says:
"The project type is not supported by the installation."
I have VS 2005 with framewotk 2.0
Any suggestions what might be wrong?
Regards,
Pavas
Regards,
Pavas
modified on Thursday, April 3, 2008 7:59 PM
|
|
|
|
|
Hi,
Maybe this will help.[^]
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Thanks.
If I have there are some custom controls installed and there are version difference in the framework like one project in 1.1 and other in 2.0..
Will this case Issue...
Regards,
Pavas
|
|
|
|
|
Yes, AFAIK all parts of an application should have the same .NET version: a single process
can not access parts of different framework versions.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Ok...but still Not able to find out what might be the cause
Regards,
Pavas
|
|
|
|
|
I have a program that was designed in Visual Studio 2005 and I had to modify the source code.
It was written with Visual Basic as the language and .Net
All I have is this VWD Express 2005. I need to do a build and to create an installer file. Is there a way to do this? What if I use Visual Basic and .Net?
Any way to use the VWD Express to do this?
Is there some third party solution?
Any advice would be greatly appreciated
Jeffrey A. Solochek
|
|
|
|
|
On startup I want to trigger the follow event manually to update whats displayed because the user has not selected anything in the combo box yet. So I want to make a default selection in the combo box if the Items member contains at least one item.
The code it executes only needs to be in this function, is calling it directly the best/only way to do this? Or is there another way to send trigger this message? Setting the SelectionIndex changes whats displayed in the combo box, but other things need to happen when that selection changes.
<br />
private: System::Void comboBoxList_SelectionChangeCommitted(System::Object^ sender, System::EventArgs^ e)<br />
{<br />
}<br />
|
|
|
|
|
Hi,
IMO you could select programmatically, so your handler would be called automatically.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
how can I see the interbal details of an assembly ( dll or exe)
I tried in notepad…
Do we have any method to list out the methods in an assembly?
My small attempt...
|
|
|
|
|
|
Hello
We have a base class (A1) with derived classes (A2).
The base class has a collection of another class (X1).
Class X1 also is the base class for a few other classes (X2).
We know that the only type of X objects that will exist in A2 are types X2.
Currently X1 returns the list of A1
As X2 is derived from X1 it also exposes the list of A1
So when looping through this collection in A2 each object needs to be cast to type X2
What we are after is a method to avoid this casting
We cant use override as the return type doesnt match x1
We cant use new as it is not possible to cast the underlying collection to List<x2>
Weve tried many other ideas none of which have helped
Is there any suggestions about what we could try?
Or do we have to always cast the X1 objects to X2.
The code is along the lines of
<br />
public class X1 {<br />
public string propQ;<br />
public string propW;<br />
}<br />
<br />
public class X2 : X1 {<br />
public string propE;<br />
public string propR;<br />
}<br />
<br />
public class A1 {<br />
public string prop1 {<br />
get {return _prop1;}<br />
set {_prop1 = value;}<br />
}<br />
protected string _prop1 = "";<br />
<br />
public List<x1> colOfX {<br />
get {return _x;}<br />
}<br />
protected List<x1> _x = new List<x1>();<br />
}<br />
<br />
public class A2 : A1 {<br />
public string prop2 {<br />
get {<br />
return "";<br />
}<br />
set {<br />
}<br />
}<br />
<br />
<br />
}<br />
</x2></x2></x2></x1></x1></x1>
BTW: Apologies for the crap class/property names
|
|
|
|
|
Are you using generics? (the <> don't show up, you have to use the buttons at the bottom of the text editor). If you're not, try generics.
You could make the base classes member an IList instead, and only instantiate it in the subclass. Then you won't have a problem with the cast because you can cast any generic List to an IList.
Simon
|
|
|
|
|
Thanks Simon,
We are using generics, should of checked the preview a bit harder.
We did look into using the generics IList interface, also inheriting directly from generic List. We did this is X class.
Both cases we still came across issues with either casting List<X1> to List<X2> or returning the incorrect return parameter in the sub class. We also tried exposing the List as a generic type in the colOfX property but this just meant the decision about the list type was made in the code implementing the object, which is what we tried to avoid in the first place.
Was this what you were suggesting or have i missed the point?
|
|
|
|
|
Just curious... has anyone ever bothered catching it?
|
|
|
|
|
Yes you can actually try to create an out of memory error so you can catch it. However in normal development practices it would more likely fall into a general catch(Exception).
led mike
|
|
|
|
|
Yes, it does not always signify what the name implies. Have a look at Image.FromFile()
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
If the file does not have a valid image format or if GDI+ does not support the pixel format of the file, this method throws an OutOfMemoryException exception.
Uhh.... wow.
Gotta love the WinForms team, total hack as always
|
|
|
|
|
reinux wrote: Gotta love the WinForms team, total hack as always
Then publish your own own base class library that would be so much better than theirs, or shut the f*** up.
led mike
|
|
|
|