pasztorpisti / vs-window-title-changer

Extension to set the title of the Visual Studio IDE using an expression.
https://visualstudiogallery.msdn.microsoft.com/2e8ebfe4-023f-4c4d-9b7a-d05bbc5cb239
MIT License
16 stars 12 forks source link

Trying to open the "Window title setup" dialog causes `Object reference not set to an instance of an object` exception #6

Open pasztorpisti opened 8 years ago

pasztorpisti commented 8 years ago

Reported by OmegaMan on the VS gallery page of the plugin.

I loaded the app for the first time VS2015. Went to settings and selected "Windows Title Setup" the got an Object reference not set to an instance of an object error message.

Again, it is a fresh install, nothing added yet. Setting Debug to true nor setting Extension Activation to AlwaysInactive does not change the outcome.

yury-kozlov commented 8 years ago

As a work around I disabled and re-enabled the extension and restarted VS.

MagicAndre1981 commented 8 years ago

I also got a System.NullReferenceException today under Win10 (Version 1607 with VS2015 Update3) when I tried to start the VS2015. I had to delete the extension from the Extension folder in Appdata\local otherwise VS never starts:

0:000>  !sos.pe 0x18cd7238 
Exception object: 18cd7238
Exception type:   System.NullReferenceException
Message:          Object reference not set to an instance of an object.
InnerException:   <none>
StackTrace (generated):
    SP       IP       Function
    00000000 00000000 UNKNOWN!EnvDTE._DTE.get_MainWindow()+0x1
    0058E6E8 12AC6828 UNKNOWN!VSWindowTitleChanger.VSWindowTitleChangerPackage.DelayedInit()+0x90

StackTraceString: <none>
HResult: 80004003
0:000> lmvm Microsoft_VisualStudio_Platform_WindowManagement_ni
Browse full module list
start    end        module name
687e0000 68a0c000   Microsoft_VisualStudio_Platform_WindowManagement_ni C (pdb symbols)          d:\sym\dl\Mi\Microsoft.VisualStudio.Platform.WindowManagement.pdb\4B623E11657F4C68B54CB8A26874EFAB1\Microsoft.VisualStudio.Platform.WindowManagement.pdb
    Loaded symbol image file: Microsoft.VisualStudio.Platform.WindowManagement.ni.dll
    Image path: C:\Windows\assembly\NativeImages_v4.0.30319_32\Microsoft.Vc38f2c7b#\c8b8f414b5385eb8e0136cc9566304df\Microsoft.VisualStudio.Platform.WindowManagement.ni.dll
    Image name: Microsoft.VisualStudio.Platform.WindowManagement.ni.dll
    Browse all global symbols  functions  data
    Has CLR image header, track-debug-data flag not set
    Timestamp:        Wed Jul 27 05:39:04 2016 (57982CD8)
    CheckSum:         00000000
    ImageSize:        0022C000
    File version:     14.0.25425.1
    Product version:  14.0.25425.1
    File flags:       0 (Mask 3F)
    File OS:          4 Unknown Win32
    File type:        2.0 Dll
    File date:        00000000.00000000
    Translations:     0000.04b0
    CompanyName:      Microsoft Corporation
    ProductName:      Microsoft® Visual Studio® 2015
    InternalName:     Microsoft.VisualStudio.Platform.WindowManagement.dll
    OriginalFilename: Microsoft.VisualStudio.Platform.WindowManagement.dll
    ProductVersion:   14.0.25425.1
    FileVersion:      14.0.25425.1
    FileDescription:  Microsoft.VisualStudio.Platform.WindowManagement.dll
    LegalCopyright:   © Microsoft Corporation. All rights reserved.
    Comments:         Microsoft.VisualStudio.Platform.WindowManagement.dll