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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:48:38+00:00 2026-06-04T05:48:38+00:00

I have a difficult to diagnose issue with a .NET Forms application where the

  • 0

I have a difficult to diagnose issue with a .NET Forms application where the UI Blocks whilst running the debugger.

The block is random and whilst blocked, if I click the pause button within the debugger it doesn’t actually complete the pause until the block releases.

I have tried the program outside the debugger by just running it and it doesn’t block and runs fine.

I have tried to use a profiler (ants) to find the block but whilst in this state it doesn’t block either and the profiler report doesn’t show anything noteworthy.

The application has background threads running to handle Socket Connectivity timeouts (with Threading.Timer these do not communicate with the UI).

The network operations are using BeginXXX calls.

I’m stumped with trying to find this issue because it doesn’t occur for users, but makes it difficult trying to debug other aspects of the program whilst these blocks seem to take place.

The main focus of the UI is a user control displaying a grid of Machines with their connectivity state retrieved from a State object (POSTerminal) from the UI thread,

Is there anything I can look at to possibly find a connection between the Debugger/UI blocking?

  • 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-04T05:48:40+00:00Added an answer on June 4, 2026 at 5:48 am

    I eventually tracked this down. What was happening is that multiple threads where raising events that were making their way back to the main form.

    In the form it was checking for the InvokeRequired and then BeginInvoke this event back onto the mainform thread. The problem was that there was a bug in the event raising that was raising thousands of events and each was being invoked which has a lock in the check on the form. Hence causing the program (and debugger) to freeze.

    I wouldn’t have expected the debugger to freeze, but it did until all the locks/invokes had been processed before the Pause/Stop in the debugger could be pressed.

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

Sidebar

Related Questions

I have a difficult dilemma. I implemented a java application using Netbeans while implementing
I'm writing a messaging application in GWT, and have a fairly difficult problem to
I have a difficult JSF issue I am trying to solve. Note, I am
I have a curious issue that's proving difficult. I have five divs stacked vertically
I have a difficult problem. Difficult means I searched through the net and StackOverflow
I have a particularly difficult form that I am trying to click the search
I'm not sure it's an acceptabale question for Stackoverflow but I have difficult time
I have an oddly difficult task to perform. I thought it would be easy,
Ever since I gained experience at a software house I have found it difficult
I'm recently new in MVC technology and i'm with a difficult I have a

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.