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

Multiple calls to createinstance

6 views
Skip to first unread message

daniele....@newvision.it

unread,
Jan 22, 2010, 2:43:52 AM1/22/10
to
Hi all,
I have a virtual device based on Vivek's VCam that works as intended
when opened from amcap.
If I open it from the flash app it was crated for there are problems.
When debugging the code I noticed that after the
CClassFactory::CreateInstance returns it is called again.. and again
(I think this stops after four or five times).
I'm no directshow expert, so it's quite possible I'm doing something
stupid.
The strange thing is that amcap spawns only an instance of the
device...

daniele....@newvision.it

unread,
Jan 22, 2010, 6:20:17 AM1/22/10
to
On Jan 22, 8:43 am, "daniele.bette...@newvision.it"

Ok, I read somewhere that someone else got the same thing happening...
Guess I'll have to deal with it. Anyone have a clue on why on flash
there are four instantiation calls?

rep_movsd

unread,
Feb 18, 2010, 1:18:59 PM2/18/10
to
A lot of applications do that multiple instantiation thing...
WMEncoder for example creates and destroys the device 5 times or so,
so if you set properties on a source filter that are not persistent,
they are lost when the filter is created for the last time.
0 new messages