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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:22:14+00:00 2026-05-20T22:22:14+00:00

I am using BeginInvoke to start a delegate, but the issue is I cannot

  • 0

I am using BeginInvoke to start a delegate, but the issue is I cannot debug in the
method invoked through BeginInvoke. When a breakpoint is set inside
the method, the IDE pauses (usually), then once the breakpoint is hit
and a continue is attempted (F10 or F11), the debugger hangs.

  • 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-20T22:22:15+00:00Added an answer on May 20, 2026 at 10:22 pm

    The most likely cause for the hang is an implicit property or .ToString evaluation which causes a deadlock in the CLR and hence debugger. Try disabling this and repeating the scenario

    • Tools -> Options -> Debugger
    • Uncheck “Enable implicit property evaluation”

    When the debugger implicitly or explicitly evaluates functions it does so on a hijacked thread in the CLR. This thread is not the thread on which you are currently debugging and all other threads are suspended during this operation. Hence if any of the ToString or property methods do a thread sensitive operation it can very easily cause a deadlock.

    The debugger effectively executes methods in the debugger window synchronously from the UI thread and consequently it locks Visual Studio as well.

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

Sidebar

Related Questions

There are a few ways to execute asynchronous threads in .NET: System.Threading.Thread.Start() System.Delegate.BeginInvoke() My
When writing async method implementations using the BeginInvoke/EndInvoke pattern the code might look something
In .Net, suppose I instantiate an object that starts an asynchronous process (using Delegate.BeginInvoke
In my WPF application I am loading content using Dispatcher.BeginInvoke in the constructor. My
Thread MeasureThread = new Thread(delegate() { TextBlock tb = new TextBlock(); }); MeasureThread.Start(); This
I am using a Dispatch timer set to fire every 20 seconds in which
I'm having an issue using a new WPF app that is trying to display
I am using the ShowWindow method from User32 to hide a window (cmd.exe) from
I want to set items(UserControl) to ItemsControl using multithread. My code likes this System.Threading.Thread
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain

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.