Giter VIP home page Giter VIP logo

Comments (7)

mayerwin avatar mayerwin commented on August 16, 2024

Thanks, do you know why this wouldn't be simply caught as an exception and ignored?

from vs-customize-window-title.

mayerwin avatar mayerwin commented on August 16, 2024

We're only invoking the UI thread in ChangeWindowTitle (to set the window name), not for read-only access of the DTE object (which would otherwise slow down the UI).

from vs-customize-window-title.

rizi avatar rizi commented on August 16, 2024

Unfortunately I don't know. I thought you maybe accessed DTE not from the main thread. That would be the reason why VS freezes.
In CustomizeVSWindowTitlePackage.cs I think you access DTE directly on some events I don't know if that's always the UI thread, but I have to say I don't develop VS extensions myself.

from vs-customize-window-title.

mayerwin avatar mayerwin commented on August 16, 2024

Could changing the compartment of the thread from MTA to STA be sufficient to solve the issue?

from vs-customize-window-title.

mayerwin avatar mayerwin commented on August 16, 2024

Are you able to easily reproduce the issue (so we can see if just changing the threading compartment is sufficient)?

from vs-customize-window-title.

mayerwin avatar mayerwin commented on August 16, 2024

Hum, normally the code already runs on the UI thread since it is triggered by a System.Windows.Forms.Timer, which should already be STA.

from vs-customize-window-title.

rizi avatar rizi commented on August 16, 2024

It doesn't happen always, but I can give it a try if you want

from vs-customize-window-title.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.