Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

QueryInterface crashes Skype after 8 time call

5 views
Skip to first unread message

testdeve...@yahoo.com

unread,
Oct 27, 2009, 12:28:32 PM10/27/09
to
Hi

I'm using this code:
http://tmhare.mvps.org/downloads/vcam.zip

If you check the code, you'll see:

HRESULT CVCamStream::QueryInterface(REFIID riid, void **ppv)
{
// Standard OLE stuff
if(riid == _uuidof(IAMStreamConfig))
*ppv = (IAMStreamConfig*)this;
else if(riid == _uuidof(IKsPropertySet))
*ppv = (IKsPropertySet*)this;
else
return CSourceStream::QueryInterface(riid, ppv);

AddRef();
return S_OK;
}


After a lot of trace, I see it works well when I call it from AmCap,
Yahoo Messenger, MSN, etc.

Just when I load it in Skype, After 3 times calling QueryInterface and
those calls go to this part:
return CSourceStream::QueryInterface(riid, ppv);

After 3-4 times calling that part of code, I get exception and entire
Skype.exe crashes...

Any ideas?

+ opencv ,I cannot realease the cam@discussions.microsoft.com vcam + opencv ,I cannot realease the cam

unread,
Dec 8, 2009, 2:03:01 PM12/8/09
to
Hi to everyone,

I have another question.

I'm using this code ,too:
http://tmhare.mvps.org/downloads/vcam.zip

My purpose is to capture a frame from a usb cam and process the data and
broadcast the video stream over skype.

For image processing, I use opencv libraries. For capturing,

I use this command "capture = cvCreateCameraCapture(0);"
I use this comand for realeasing "cvReleaseCapture( &capture );"

but I cannot realase the cam it after I call this function. When I run the
cam once on the skype once, it works fine , but as a second time, it shows
nothing on the screen because the cam is still in used.

If anyone did this kind of application, and If the one helps me, I would be
happy a lot.

I also checked the directshow examples how to capture a frame from a cam. I
have some application in my PC. But I am not able to combine them with vcam.

Thank you ,

Enes Dayangac
enesda...@gmail.com


"testdeve...@yahoo.com" wrote:

> .
>

0 new messages