draco1023 / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Memory Leak while multvideo record avi using wmv3 codec #133

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. record avi video with fourth object AVIWriter.
2. Memory leak in AVIWriter.AddFrame()
3.

What is the expected output? What do you see instead?

What version of the product are you using?
2.1.0.0

Please provide any additional information below.
I'm trying to write the four video stream from my webcam in four avi files
using wmv3 codec. However, after about 6 minutes starts leaking memory.
After debugging I realized that the error was in AVIWriter.AddFrame().

private void webcam1_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
    writer1.AddFrame( eventArgs.Frame );

}

private void webcam2_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
    writer2.AddFrame( eventArgs.Frame );

}

private void webcam3_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
    writer3.AddFrame( eventArgs.Frame );

}

private void webcam4_NewFrame( object sender, NewFrameEventArgs eventArgs )
{
    writer4.AddFrame( eventArgs.Frame );
}

Original issue reported on code.google.com by pamelaps...@gmail.com on 30 Mar 2010 at 3:15