Re: Intermitent IMediaControl::Stop problem

From: Scott VanDelinder (ScottVanDelinder_at_discussions.microsoft.com)
Date: 11/16/04

  • Next message: Thore Karlsen [MVP DX]: "Re: Simple AVI Creator"
    Date: Tue, 16 Nov 2004 10:33:22 -0800
    
    

    The link you included mentioned use of InSendMessage before destoying the
    graph. I'm not really destroying it, just stopping it, but decided to give
    it a try. I sent the update to the application off to my customer a couple
    weeks ago, and apparently this has fixed the problem. Thanks very much to
    everyone who replied for the help on this item.

    "Geraint Davies" wrote:

    > >>Could you explain why you expect the Renderer is trying to send a message
    > >>to
    > >>the application?
    >
    > There's also a worker thread owned by the filter graph control code which is
    > shared between all graphs in a process. This worker thread has a lock and
    > the code to gain the lock pumps messages while waiting for the lock. I've
    > seen this lead to deadlocks in other cases (see
    > http://www.gdcl.co.uk/q_and_a.htm#FGC_Deadlock ) and I would not be
    > surprised if there was a similar explanation. You could try creating the
    > graphs with no thread as suggested in the article and see if that helps.
    >
    > G
    >
    >
    >


  • Next message: Thore Karlsen [MVP DX]: "Re: Simple AVI Creator"

    Relevant Pages

    • Re: [RFC, PATCH] locks: remove posix deadlock detection
      ... whether we're adding a cycle to an arbitrary directed acyclic graph. ... And this calculation has to be performed while holding a lock (currently ... EDEADLK behaviour is required by SuSv3 ...
      (Linux-Kernel)
    • Re: [RFC, PATCH] locks: remove posix deadlock detection
      ... requests that would create a cycle in the graph of tasks waiting on ... whether we're adding a cycle to an arbitrary directed acyclic graph. ... And this calculation has to be performed while holding a lock (currently ...
      (Linux-Kernel)
    • Re: 2.6.11-rc2-mm1
      ... > o Annotate code with the lock that could be taken. ... > o Create a graph from the locking hierarchy obtained above. ... the graph surely has cycles. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: deadlock detection
      ... filename, the function of the lock, and the offset of the requested ... I am using one mutex for graph edits, ... I did not see anything in your links that looked like a graph ... but the guts of the cycle detector are only ...
      (comp.programming)
    • Re: Pausing a Graph without SyncSource
      ... extend the Dump filter with a thread that writes the data ... can't get a free IMediaSample and the graph is supended. ... the streaming thread) and block this ... worker thread and, if you have a queue, you should flush as ...
      (microsoft.public.win32.programmer.directx.video)

    Loading