|
Are you looking to just do the operation, and not write any software?
If so, check out VirtualDub. You'll open the .avi file with it, under the Video menu, select "Direct Stream Copy". Under Audio, select "WAV audio...", select your file. Optionally, to compress the audio, select "Full Processing Mode" under Audio, then select "Compression..." and select a codec and quality. Click File->Save as AVI and you're done.
|
|
|
|
|
Hi,
As far as I remember, all the articles I have seen for detecting memory leaks were associated with adding some code to your program.
What if I am running someone else's code and I want to check for memory leaks, is that doable ?
Thanks,
Shay
|
|
|
|
|
Shay Harel wrote: What if I am running someone else's code and I want to check for memory leaks, is that doable ?
While it may be possible to detect if it has or hasn't, you'd have no way of determining where.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I'll go with the first option.
If I can prove an application is leaking memory, I can get the developer to fix it. All I need to do is to prove it does it.
|
|
|
|
|
it looks like a chief behavior, who don't bother at all the guys of his team
even if you find some memory leaks, how will the developper find the lack ?
did you ever coded in your life dude ?!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
To start with, I wrote tons of code and still does.
However, I am using someone else's application and I need to prove it's causing memory leaks.
Since this application runs for days, the leaks are finally halting the system. The problem is we have multiple applications running on the background and we need to find the culprit.
Sounds better ?
|
|
|
|
|
Shay Harel wrote: Sounds better ?
few...
as the program is not running alone on its machine, there could be leaks at several places.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Which was my original question...
Is there any application out there that somehow monitors memory usage per application so I can see if any of the applications just consume more and more memory.
|
|
|
|
|
|
Configure the application for 'constant' behavior. That is some well-defined repeatable behavior that should USE memory but not LEAK memory.
Set up performance monitor to watch this application's working set size and private bytes. Chart over a day or two, or until application halts.
Then see if that application has a constantly growing use of the working set size and private bytes. You can probably assume it has a memory leak.
|
|
|
|
|
|
To find memory leaks using just Visual stidio,-
is unappropriate complex task.
visual studio does only small chek and nothing more,
so slightly complex errors remains hardly found.
Best and easy way to use specialized program like
BoundsChecker,
or something like this.
|
|
|
|
|
I like to drop in MMGR. Add it to your project, then read the comments in mmgr.cpp to use it. It will record every allocation without adding the header file to your project files, but it won't record the file and line number of the allocation unless the mmgr.h is included. It can record every memory allocation or only mem leaks in a text file that's easy to read. It helped me spot places where I allocated an array of characters, eg. I used
delete item; on an array called item instead of
delete[] item; and things like that. There are plenty of asserts in there with comments that tell you what you did wrong to cause the assertion.
|
|
|
|
|
FWIW, I do not think that kind of error causes a memory leak directly (only indirectly). Missing the [] operator causes only the first object in the array to have its destructor called, but the memory block itself is still freed.
For example, if you missed the brackets on an array of simple types, there should be no memory leaks. However, if the array was an array of complex objects that themselves allocate memory, then that might indirectly cause leaks because the destructors will not be called on objects 2-n in the array.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
This may be a dumb question, but why can you not just use Task Manager, and look at the memory consumption of the process in question?
Over time, if leaks do exist, you should be able to see an increase in total memory usage over time.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
yes, this is a "memory leak" 101 thing.
I was looking for something that will do that for me and have some reporting instead of me having to look at it all the time.
|
|
|
|
|
Hi Everyone,
I am faced with a bit of a problem. I suspect it is a problem only because of my non-existant knowledge of c/c++.
I need to use a third party SDK to be able to control and/or monitor some telephony hardware from a popular vendor.
My problem is that I have to do this from a .Net environment (C#) but the SDK file are .lib files. It is said that it is dynamically compiled (what that means I have no idea).
Can anyone possibly tell me how I could use it from C# and if it's impossible, how I can wrap it in normal dll's (so I can use Dllimport) as normal.
Thanks and Regards,
Phi?
|
|
|
|
|
Hello,
I assume that you have the C++ header files for the libraries. You can do / try the following:
<list> Set up a new project for a DLL. Here you write new headers that export the functions from the library. You create a DLL from here.
You write a managed wrapper for the library and create a .NET assembly for that.
Hope this helps
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Thanks for your reply.
Yes I do have the header files.
So am I right in saying that I would need some C/C++ skills for this?
I feared that as I have very limited skills in that area and the header files' code seems very complex for me.
Regards,
Phi?
-- modified at 8:52 Monday 31st October, 2005
|
|
|
|
|
André Trollip wrote: I feared that as I have very limited skills in that area and the header files' code seems very complex for me.
don't worry André, headers are - most of the time - only declarations.
what can obfuscate the understanding (especially with a dll header) can be function pointers. i suggest you so having a look at the msdn on that topic, of search the web for it (but just tell you it's not so hard and everything will be ok ).
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
André Trollip wrote: So am I right in saying that I would need some C/C++ skills for this?
You don't need 'skills' as in n years experience. You do need to know a little bit about the topic. Search google or CP for writing DLL's. There are some articles here about the topic.
Maybe you should try to call the vendor if they can build the library for you. This wouldn't be a crazy request since you paid for the API anyway.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Why Visual Studio 6 C++ begins slowly editing for multy-project solution?
VS6 sp6.
One project being edited as text in studio -
for inserting new string - works very fast,
(on my P4-3000, 1GB)
but if I edit this project in solution that includes 15 projects,
inserting one line to 200 lined file
takes 1-2 seconds,
it is so long!
why so happen?
How to correct it?
thanks
|
|
|
|
|
Is your visual studio linked to some SSC ? Source control ?
If so, you can try removing it, This can speed up loading and editiing speed.
-prakash
Learning Symbian
|
|
|
|
|
No, it is not linkd to versioning systems,
but only to BoundsChecker.
But with swithed off all options.
This program - can do this slow behavior ?
|
|
|
|
|
vgrigor1 wrote: but only to BoundsChecker.
But with swithed off all options.
This program - can do this slow behavior ?
I have not used boundschecker, so no idea.
-prakash
Learning Symbian
|
|
|
|