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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:04:52+00:00 2026-05-12T15:04:52+00:00

Running into problems creating objects through reflection and then running them on multiple threads.

  • 0

Running into problems creating objects through reflection and then running them on multiple threads.

I just cannot seem to figure out what I need to here:

            For Each WorkerNode As XmlNode In oRunSettings.GetWorkerValues
                Dim sWorkerName = WorkerNode.Attributes(SETTING_NAME_ID).Value
                Dim oWorkerType As Type = Type.GetType(String.Format("Worker.{0}", sWorkerName))
                Dim oWorker As Object = Activator.CreateInstance(oWorkerType)
                Dim tWorker As Thread = New Thread(AddressOf oWorker.Process)
                tWorker.Start()
            Next

It is causing errors at the “AddressOf” because Object does not have a method called that. Do I need to do something with an interface?

  • 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-12T15:04:52+00:00Added an answer on May 12, 2026 at 3:04 pm

    I hate when people answer their own question, but while waiting for an answer, I realized that I could just cast the object as its base object, and set the reflection from there. That is working now.

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

Sidebar

Related Questions

I am a Symfony2 newbie running into problems with edit-forms and doctrine. I seem
I'm running into a number of problems creating an effect very similar to the
I am running into problems when I try to run the jar file created
I'm running into problems implementing statuses for a model. This is probably due to
I am running into problems where some of our data stores are seeing a
I'm running into problems with my Sieve of Eratosthenes. I wanted to write a
I'm new to parallel computing and am running into problems with server/client connections. I
Hi guys I'm trying to integrate the tinymce plugin however I'm running into problems
I'm running into some problems using my .NET 4.0 libraries in .NET 2.0 applications.
I am working on a custom SSO solution and running into some problems with

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.