Skip to content

Get Null Exception on Previously Opened/Docked ToolWindow #531

@shaggygi

Description

@shaggygi

If I run my extension with a ToolWindow, leave it opened/docked, close the VS debug hive, and reopen... my tool window is still visible, but get a null exception with the error message "An exception was encountered while constructing the content of this frame. ".

I'm assuming there is some extra code needed to instantiate the control/content with the data context, but not sure. I followed the ToolWindow sample and appears to do similar.

Any help is appreciated.

Update:
To follow up on this, I noticed something a little odd where if I dock both my extension tool window and the ToolWindow sample in the DocumentWell, close VS hive, and reopen, I get this null exception on the tool window that was visible, but not the other. Meaning, if my tool window was visible, it'd get the exception error and not the ToolWindow sample extension (will be visible and works). And if the ToolWindow sample extension is visible when running the hive, it will have the exception and my extension will be visible/work. Hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions