Hi,

I use avshws sample to retrieve frame from usb camera. As all is working
fine, I'm launching DTM tests on driver.
Problem occurs in "Pressure Security Test" sequence.

it seems that the function defined while using KsAddItemToObjectBag to
free memory "double" frees memory allocation and thus leads to a crash C2.

What it the "trick" to avoid this with KsAddItemToObjectBag ?

Best Regards,
Damien

Re: avshws sample and DTM test "Pressure Security Test" by Tim

Tim
Fri Jul 18 00:48:18 CDT 2008

Damien Lebrun <damien.lebrun@cynove.com> wrote:
>
>I use avshws sample to retrieve frame from usb camera. As all is working
>fine, I'm launching DTM tests on driver.
>Problem occurs in "Pressure Security Test" sequence.
>
>it seems that the function defined while using KsAddItemToObjectBag to
>free memory "double" frees memory allocation and thus leads to a crash C2.
>
>What it the "trick" to avoid this with KsAddItemToObjectBag ?

The trick is "don't free anything on your own if you have added it to the
object bag."
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.