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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:19:46+00:00 2026-06-01T16:19:46+00:00

I have a job object for long running operations that works like this: Class

  • 0

I have a job object for long running operations that works like this:

Class LongRunningJob
    Inherits BackgroundWorker

    Protected Overrides Sub OnDoWork(ByVal e As System.ComponentModel.DoWorkEventArgs)
         'do long running job here
    End Sub
End Class

And I invoke this like so:

    Dim job As New LongRunningJob

    'run it
    job.RunWorkerAsync()

This worked fine a year ago, and I moved on to other things. I had to return to this code today, and when I run it now, the OnDoWork override is simply not called. A breakpoint in there isn’t hit, debugging messages aren’t written, the method is simply not called, and no errors are thrown anywhere.

I can’t think what would have changed that could cause this, since it seems like a low level framework thing. The rest of the app loads and runs fine, the main window shows (it’s a WPF app), and button click events fire. It’s just the background thread method that doesn’t fire. What could be going on 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-01T16:19:48+00:00Added an answer on June 1, 2026 at 4:19 pm

    Well, I figured out how to fix the problem, although I’m not really sure what’s really going on here. If I left the OnDoWork routine empty:

    Protected Overrides Sub OnDoWork(ByVal e As System.ComponentModel.DoWorkEventArgs)
         'no code at all
    End Sub
    

    it would be called, and if I put basic framework stuff in there, it would also be called. But as soon as I added a line like this:

    Dim result = AnotherLibrary.SomeMethod()
    

    the routine would not be called. I looked at the project for AnotherLibrary, which is authored by me as well, looked at the Compile Tab, the Target CPU dropdown and saw that it said x86. I changed it to Any CPU and that fixed the problem. But I’d still like to know what that really means and why it caused this problem.

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

Sidebar

Related Questions

I have a cron job on an Ubuntu Hardy VPS that only half works
I have a command object: public class Job { private String jobType; private String
This project is in c# under .net 4. I have a custom object that
Consider the following, I have a Job class that has inputs and one output.
Problem I have a long running import job which I start with an ajax
I'm running this scala code on a 32-bit quad-core Core2 system: def job(i:Int,s:Int):Long =
I have a Semaphore that runs trough a list of Job objects. Here is
We have a job management application running (Access) with the database in SQL Server
I have a job on SQL Server 2005 running a ssis package. The package
I'm a c# developer but have a job that involves some jsp code. I've

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.