Re: Events don't work using C# & SetNotifyWindow
- From: Iain <Iain@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 17 May 2006 17:30:43 +0100
On Wed, 17 May 2006 08:44:02 -0700, David Paps wrote:
Is there any way to obtain the events when they appear, and no when the C#
code has bee executed ?
If you need extra info, ask please.
I think this may be about cross thread notifications.
If the event is raised on a thread which is not the one which created it,
then VB (6 or .net) or CS doesn't always get it. The solution in VB was to
raise the thread from the thread which created it. You do this by making
the atl dll which contains the ds code a CWindow. THen you can post a
message to that window when the DS event is raised, handle the windows
message and raise the event in that.
YOu may well be able to do the same thing with C# by using Invoke from the
event handler in the C# code.
Iain
--
Iain Downs (DirectShow MVP)
Commercial Software Therapist
www.idcl.co.uk
.
- Prev by Date: Re: No call to Receive() in custom transform filter
- Next by Date: Re: How to use STL object between app and Filter ?
- Previous by thread: Copying existing timeline to temporary timeline
- Next by thread: Re: Events don't work using C# & SetNotifyWindow
- Index(es):
Relevant Pages
|