Visual Studio Development Bookmark and Share   
 index > Visual Studio Extensibility > Problem with persisting tool window positions & docking state
 

Problem with persisting tool window positions & docking state

Hi there,

many users of our product (a VS add-in) regularly report that positions & docking state of the tool windows we create are not persisted across VS sessions. We create tool windows using IVsUIShell.CreateToolWindow and pass it in a valid GUID of the persistence slot in the registry (and this GUID key really exists in the registry). Nevertheless, in some cases the positions and docking state of tool windows are not persisted, and the tool windows display in the default state & position on the next VS restart. The VS logs some users submitted to us contain one interesting cue: in case the tool window positions are not persisted, the log contains the following entry:

<entry>
<record>143</record>
<time>2007/03/01 07:32:36.381</time>
<type>Information</type>
<source>Microsoft Visual Studio</source>
<description>Unexpected system error mode before loading package [Visual Studio Common IDE Package]</description>
<guid>{6E87CFAD-6C05-4ADF-9CD7-3B7943875B7C}</guid>
</entry>

I'm not sure it is relevant, and I don't know what this entry means. Does anybody have an idea what may cause the problem with persistence and how / is the entry above is relevant to this problem?

Thanks.
Dmitry Shaporenkov  Thursday, March 01, 2007 10:00 AM

Hi Dmitry,

Did you report the bug already? If not - you can do it here.

Dmitry Pavlov  Saturday, March 03, 2007 1:12 PM
Hi Dmitry,

I think that the conditions of reproducing it is too vague to submit a bug. And also I'm not 100% sure that it is a problem in VS and not in our product. Anyway, thanks for the link - I've to admit that I've not come across connect.microsoft.com it yet :)
Dmitry Shaporenkov  Sunday, March 04, 2007 4:34 AM

You can use google to search for other answers

Custom Search

More Threads

• Extending the server explorer
• Getting Command object from CommandBarControl
• How to read/set Windows Forms Designer properties from Add-In
• Isolated Mode - Shell Template - VS2008 Beta2
• What should I mock to test a developed DSL package?
• Embedding Relationships and Inheritence
• Strange swimlane behaviour
• class members organizer
• T4 using C# 3.0
• Transitions shapes not draggable/Package Load Failure