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 6215103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:59:42+00:00 2026-05-24T06:59:42+00:00

In normal circunstances it should’t be possible to access to properties values assigned on

  • 0

In normal circunstances it should’t be possible to access to properties values assigned on main thread on TimerCallback function, right?

I have a class that uses a timer and this class has a method for TimerCallback, well, I access properties on this method as if there were no multithreading (I see the values assigned on main thread)

If necessary I’ll paste some code, but I wanted to know first if I have a major confusion in relation to Timers.

Thanks

  • 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-24T06:59:42+00:00Added an answer on May 24, 2026 at 6:59 am

    it should’t be possible to access to properties values assigned on main thread on TimerCallback function, right?

    Wrong! this is only when you are using UI that rely on the main thread, example when using winforms UI and WPF and even some COM compoents you only should access to its members from the thread that they created on, no matter if it where the main thread or not.

    However for a custom class you build, it doesn’t matter which thread access the member, that is it, any thread can access the class and its members no matter it it where on the thread that creates that class or not.

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

Sidebar

Related Questions

We've got a winforms LOB application, which under normal circumstances should be started from
In my project I have a Thread which might be modiefied by the thread
I have an installshield installer that works fine under normal circumstances. But when I
Under normal circumstances, what should I expect the worse case scenario to be for
*I'm using Java. I have this thread, agent, that explores a room to determine
Let's say I have an image that does not reside in the normal location:
On Windows, under normal circumstances a 32 bit process can only access 2GB of
This is how my site should look like under normal circumstances: In certain pages,
I have the following php script which works flawlessly in normal circumstances (i.e. visiting
Under normal circumstances, a VB.NET application of mine can check the ClientName environmental variable

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.