locked
Cross-Threading Problem (Haadka) - 5/2/2007 9:22 AM PST RRS feed

  • Question

  • By: Haadka

    hi there,
    I am faicng a problem in cross-threading. I have a thread (that contains 
    about 10 methods) and that receives messages and updates the UI continuously. 
    I am facing an error relate to cross-threading that states:
    "The calling thread cannot access the object because a different thread owns 
    it"
    
    I remember in Windows Forms we used to add the following line to fix the 
    problem:
    "System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;"
    
    Is there any solution for that in Blend (WPF) or this is a bug that should 
    be fixed. 
    
    Regards
    
    Tuesday, February 19, 2008 11:11 PM