Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8902837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:42:53+00:00 2026-06-15T01:42:53+00:00

I understand that this has been discussed on other questions but I am pulling

  • 0

I understand that this has been discussed on other questions but I am pulling my hair out here- clearly missing something obvious. I’ll try to give you some background info so here goes…

I have a UI thread which was freezing up so I created a background worker to do all the heavy processing to keep my UI interactive.

I need to generate coordinates for some arcs/ paths which I then draw on a canvas. The background worker processes and runs it’s work completed method where it stores the PathGeometry along with some other data in a list. I then called an update() method in my UI thread, from my backgroundworker, using the object I passed into the backgroundworker.

My problem is that when I begin to build the Path objects in the UI thread (it wouldn’t let me build them in the backgroundworker thread) I am unable to access the PathGeometries. My object is a CommunicationArc and it holds the PathGeometry, opacity, colour etc.

The calling thread cannot access this object because a different thread owns it.

I can access other parts of the object but not the PathGeometry and I do not know why. The backgroundworker surely has finished as the workcomplete method has run and the Arcs are all stored in my list. I simply want to read the arcs in my UI thread, process them a little bit more and go on to draw them.

I have tried using the Dispatcher from my UI thread like so:

arc.pathGeometry.Dispatcher.BeginInvoke((Action)(() =>
            {
                MessageBox.Show(arc.pathGeometry.ToString());
            }));

But I’m not really sure if what I am doing is right and various methods to call the Dispatcher either don’t do anything or lock everything on the BeginInvoke().

Any help would be great, I feel like I’m going in circles here!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:42:55+00:00Added an answer on June 15, 2026 at 1:42 am

    You need to create and manipulate your geometry objects directly on the UI thread. Any thread processing you perform cannot access the geometry object directly they must be dispatched to the thread which created them – the UI thread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand this has been discussed before but since this post in late 2010
I know that this has been discussed lot of times. I just can't understand
I understand that this has been solved in C/C++, but I am not comfortable
I understand that this question has been asked before, but most of the time
I understand that this question has likely been asked, but I don't understand the
I understand that this question has been raised many times already. But I can't
I am trying to understand this simple hashlib code in Python that has been
I know this has been discussed ad-nauseum but I just don't get some of
I know this topic has been discussed and killed over and over again, but
I understand that this question has been done to death so I'll apologise in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.