Killing a Thread

Posted on 2004-11-24
Last Modified: 2010-04-15
I have an application that is using DirectX's DirectShow through ComInterop.  The problem I am having is that it seems that one of the DirectShow interfaces is creating a worker thread that continues to exist event when I call Marshal.ReleaseComObject on the interface.  I am basically asking how can I kill a thread when I don't have a handle to it???

Question by:gvector1
    LVL 5

    Accepted Solution

    A guess:

    If the process shows up in TaskManager -> Processes can kill it by name:

    //stop the service if its running
    System.Diagnostics.Process[] prs = System.Diagnostics.Process.GetProcessesByName("WINWORD");
    foreach(System.Diagnostics.Process pr in prs)


    LVL 6

    Assisted Solution

    catch( ThreadAbortException a )
    LVL 5

    Expert Comment

    Thank you....and good luck!!


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Lazy Loading not working in EF on all tables 13 34 mvc - Time 37 45 mvc C# 2 27
    Put text in a picture ASP.NET C# 2 26
    In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now