• 0

Visual Studio stuck in Build Mode


Question

I have been having a bad VS day today, and this includes my latest problem:

I was working on a project and then went to rebuild it. I then started to edit a file and it said "Cannot currently modify this text in the editor. It is read-only." I noticed that it was still building, even though it didn't have any indication (No output window text, no "Build started..." at the bottom, etc.) except for the little animated icon. I tried to cancel the build using Build -> Cancel Build but it didn't work. I tried closing Visual Studio, but it froze and then a little while later popped up a message that said I had to wait for the build to finish in order to close the solution. I then went into task manager (the build had been running for a good 2-and-a-half to 3 minutes now) and terminated "devenv.exe". I started it back up and edited the code. I tried to build it, and it froze again. Now I shut down my computer thinking, "Oh, its just something stuck in RAM. It'll clear it when I reboot." I was wrong. Still the same problem. I tried moving the code files (and code files alone) into another folder and making a new project. It built fine once and ran fine once, and now the new project has the same symptoms!

Another little symptom I thought I'd mention is that now the cursor blinky-thing in the text editor is stuck, and only stays solid. Grrrr. Anybody got any ideas to fix this (these, if you count the cursor) problems?

Link to comment
https://www.neowin.net/forum/topic/902126-visual-studio-stuck-in-build-mode/
Share on other sites

4 answers to this question

Recommended Posts

  • 0

OK. This is interesting. I just found out why it got stuck:

I had made an owner-draw text box the way that I saw here, by overriding WndProc(). When I loaded the designer, it was calling this new method, and for some reason not handling the paint right. This made the WndProc() procedure somewhat freeze, or not do anything, thus freezing the build. I ended the devenv.exe process and restarted it, then deleted the text box from the form, and rebuilt it. It worked fine! So now I am using the method found here, by using SetStyle(ControlStyles.OwnerDraw, True). The only problem is that when I edit the text in the control, it draws text in the FixedSys font (or something similar) on a white background, and then when I exit the control it does the normal drawing, however the caret does not line up. I have attached a short video showing the behavior. So my question now is: How can I override the text drawing so that it doesn't look like this while editing?

Video:

ownerdrawtextbox.movFetching info...

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Where's the official link to sign up?
    • It's not a hardware or software issue, it's a hardware limitation. Good grief... Dell playing the semantics game.
    • Perplexity starts testing its Comet AI browser on Windows by Usama Jawad AI is all the rage these days with Microsoft heavily pushing Copilot, Google investing its efforts in Gemini and Veo, Apple still figuring out Apple Intelligence, and OpenAI continuing to dominate the headlines. Now, another player in this space, Perplexity, has decided that it wants a bigger chunk of the market too. We already know that Perplexity is interested in the browser market. In May, it rolled out a version of its AI browser, Comet, exclusively to Mac customers running Apple Silicon. As expected, this piece of software features AI capabilities front and center, including the ability to engage in conversations with the AI model in natural language, surface emails that you haven't responded to, and a "Try on" feature that enables users to upload a picture of themselves and then see AI-generated images of themselves with different pieces of clothing, just to get an idea of how aesthetic they could look if they wear certain garments. Now, Perplexity CEO Aravind Srinivas has posted on X (formerly Twitter) that testing for the Windows version of Comet has now begun: Now that the testing for Comet on Windows has begun with a handful of testers, it will be interesting to see when the browser will roll out generally to customers and what feature set will eventually become available for the masses. That said, it is important to note that AI browser is not a novel concept; Opera Neon was recently announced as the first "AI agentic" browser. On a side note, Perplexity has been in hot waters recently. It received backlash from people after it revealed plans to find out everything its customers do online so that it can present them hyper-personalized ads. UK news outlet BBC also threatened the firm with legal action over its content scraping practices. Via: Engagdet
    • probably because these will be a minority compared to our general tech coverage, plus these stories, their premises do seem quite interesting.
  • Recent Achievements

    • First Post
      Brett76 earned a badge
      First Post
    • One Year In
      78andyp earned a badge
      One Year In
    • One Month Later
      Cottonbud earned a badge
      One Month Later
    • One Month Later
      langat earned a badge
      One Month Later
    • One Month Later
      Nullun earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      598
    2. 2
      ATLien_0
      219
    3. 3
      Michael Scrip
      197
    4. 4
      +FloatingFatMan
      144
    5. 5
      Xenon
      135
  • Tell a friend

    Love Neowin? Tell a friend!