MatLab COM Object in DShow Filter

I am doing some realtime sound processing using DShow. I have developed a pice of algorithm in MatLab and put it into COM object (thx to MatLab COM Builder).

Everything seemed to be fine until I tried to useGraphEdit to test my filter. There was an error:

******************************

Runtime Error!

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

******************************

and then:

*****************************

ASSERT Failed

Executable: graphedt.exe Pid 858 Tid 12f8. Module AudioFilter.dll, 2 objects left active!

At line 317 of .\dllentry.cpp

*****************************

I thougth that I can debug it in my own application but it does not apear there! The filter works fine in my application and no error apears.

I use Microsoft Visual Studio .NET 2003 whole application and filter is written in C++. To create an instance of my MatLab class in my filter I use CoCreateInstance in constructor of my filterclass.

**********************
*pHR = CoCreateInstance(CLSID_CExtractFeatures, NULL, CLSCTX_INPROC_SERVER,IID_ICExtractFeatures, (void **)&m_pIFeatures);
**********************

Can you spot any mistake that I make?

[1491 byte] By [Hexen12] at [2007-12-21]

Software Development for Windows Vista

Site Classified