• 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

    • The blobby, bouncy UI effects seem like they would get old really fast. https://www.youtube.com/watch?v=jGztGfRujSE
    • Samsung Galaxy Watch8 Classic allegedly leaked through eBay listing by David Uzondu A new eBay listing (archived) just casually dropped the entire Samsung Galaxy Watch8 Classic on the internet. As spotted by OnLeaks, someone in Wilmington, Illinois, is trying to offload what looks like a genuine, unreleased unit for a "buy it now" price of around $570. To be clear, that is the seller's asking price, not the official figure from Samsung. The listing's title is simple: "Samsung Galaxy Watch8 Classic SM-L505U 64GB LTE 46mm Silver unreleased NOB". You really have to appreciate the audacity of just posting it for the world to see, weeks before its official debut. The photos themselves are a goldmine, showing the SM-L505U model looking exactly like the renders that leaked last month. We are getting a proper physical rotating bezel, which is a big deal for a lot of people. The case itself has this interesting squircle shape, sort of like the icon shapes in OneUI, while the screen inside remains perfectly round. Image via amonste_92 on eBay The watch has a prominent crown nestled between two physical buttons, with a speaker grille visible on the opposite side. The whole package, shown with its leather strap and the usual magnetic charging puck. Image via amonste_92 on eBay That "64GB" in the listing title is a huge detail if it's accurate, as it's double the 32GB of storage as we saw with the Watch 7. Spec-wise, the Watch 8 is rumored to run on the same Exynos W1000 chip that debuted in the Watch 7 last year, which means we might not see a leap in processing power. So you get more space for music and apps, but the core engine remains the same. The Watch8 Classic is rumored to debut with a 435mAh battery, a 1.5-inch display, and One UI 8 Watch.
    • Your own genitals unmatch right toes.
    • I wonder why they jumped from 0.1 to 0.4?
  • Recent Achievements

    • Dedicated
      MadMung0 earned a badge
      Dedicated
    • Rookie
      CHUNWEI went up a rank
      Rookie
    • Enthusiast
      the420kid went up a rank
      Enthusiast
    • Conversation Starter
      NeoToad777 earned a badge
      Conversation Starter
    • Week One Done
      VicByrd earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      506
    2. 2
      ATLien_0
      268
    3. 3
      +FloatingFatMan
      257
    4. 4
      Edouard
      203
    5. 5
      snowy owl
      178
  • Tell a friend

    Love Neowin? Tell a friend!