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

  • Home
  • SEARCH
  • 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 6859433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:16:56+00:00 2026-05-27T02:16:56+00:00

I have a WPF program with two listviews which display information from two different

  • 0

I have a WPF program with two listviews which display information from two different observable collections. These observable collections are updated on a timer which fires every second.

For some reason, these listviews do not update when the data collection is updated… they will update occasionally but there is no guarantee that it will ever happen. I can run the whole program for 10 minutes and have nothing displayed… There are no databinding errors in the output window, either. In fact, if I populate the collection during startup, to test the binding, it is all displayed without problems. It’s only when I am adding items dynamically during the execution of the program that there is a problem.

When trying to debug it is impossible to follow the program because for some reason I’ve got a whole load of worker threads running which I never defined or asked for:

https://i.stack.imgur.com/Z0XB3.png

I think these extra threads might be part of the problem. Is there an easy way in C# to define a function as threadsafe like the synchronized keyword in Java?

EDIT:

JFifoErrorCollection.Add(errorData); 
JFifoList.Items.Refresh(); 
break; 

EDIT #2: I have solved this issue.. I was using a System.Threading.Timer which didn’t run on the UI thread. Changed to System.Windows.Forms.Timer and now it works perfectly.

  • 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-05-27T02:16:57+00:00Added an answer on May 27, 2026 at 2:16 am

    Use the WPF built in DispatcherTimer.

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

Sidebar

Related Questions

I am writing a WPF program in C# in which I have a ListView
I have a WPF program that I'm developing in which I want to catch
Scenario: I have a WPF desktop application which will be distributed on different machines
Have a look at this very simple example WPF program: <Window x:Class=WpfApplication1.Window1 xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml
I have a problem with my WPF program. I'm trying to create an object
I have WPF ListBox which is bound to a ObservableCollection, when the collection changes,
I have WPF Form which has many buttons with the same code. Appearance of
I have a WPF Window which has a among other controls hosts a Frame.
I have several wpf pages with update/delete/add buttons. I want to display to the
I have a WPF program built in C#, and part of it's function is

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.