Home Dashboard Directory Help
Search

VS2012 System.OutOfMemoryException devenv.exe 11.0.50727.1 Framework Version: v4.0.30319 with event logs by Arnaud Dovi


Status: 

Closed
 as Fixed Help for as Fixed


5
0
Sign in
to vote
Type: Bug
ID: 761609
Opened: 9/7/2012 6:04:50 AM
Access Restriction: Public
0
Workaround(s)
view
2
User(s) can reproduce this bug

Description

Opens my VB solution of 52 projects, the crashes always happens while using the designer mode, but its not really reproducable, I can work 1 hours without one crash, another one hours with 3 or more. Below is the event viewer log

Windows 8 RTM English, VS2012 ultimate

Also I'm using AnkhSvn and ReSharper 7 but I doubt it's caused by them

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OutOfMemoryException
Stack:
at System.Drawing.Graphics.FromHdcInternal(IntPtr)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.DrawTreeViewExpander(IntPtr, System.Drawing.Brush, System.Drawing.Pen, Int32, Int32, Boolean)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.DrawExpanderForNode(IntPtr, System.Windows.Forms.TreeNode, System.Drawing.Brush, System.Drawing.Brush, System.Drawing.Pen)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(System.Runtime.InteropServices.HandleRef, Int32, IntPtr, IntPtr)
at System.Windows.Forms.Control.SendMessage(Int32, IntPtr, IntPtr)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr, System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WmNotify(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.UserControl.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.TreeView.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(System.Runtime.InteropServices.HandleRef, Int32, Int32, Int32)
at System.Windows.Forms.Control.EndUpdateInternal(Boolean)
at System.Windows.Forms.TreeView.EndUpdate()
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.UpdateTreeView()
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.OnIdle(System.Object, System.EventArgs)
at System.EventHandler.Invoke(System.Object, System.EventArgs)
at System.Windows.Forms.Application+ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32)
at System.Windows.Forms.ComponentManagerProxy.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32)
Details
Sign in to post a comment.
Posted by Sinan Dinç on 3/28/2013 at 5:13 PM
I dont want to install CTP version, when will you publish the final update 2 RTM?? My VS2012 keeps crashing with this annoying bug 5-10 times everyday!! System.OutOfMemoryException!! Also the winforms IDE perfomance is sluggish even with my 16 GB RAM and hardware acceleration
Posted by MJ Hufford on 3/23/2013 at 7:20 PM
Did this ever get fixed?
Posted by Arnaud Dovi on 2/11/2013 at 2:06 AM
Seems fixed cant reproduce in Update 2 CTP

Btw I note speed improvments too so good job, Visual Studio seems faster at opening Forms, Document Outline window etc
Posted by Microsoft on 2/4/2013 at 11:08 AM
Hi Arnaud,

Visual Studio Update 1 (version 51106) does not have the fix for this bug. Please try out Visual Studio Update 2 CTP available here:
http://go.microsoft.com/fwlink/?LinkId=273878
Thanks,
The Windows Forms Team
Posted by Arnaud Dovi on 1/8/2013 at 10:56 AM
Thnk you for replying I thought you abandonned on this one

I'm able to reproduce again on Visual Studio Pro 2012 Update 1 devenv.exe 11.0.51106.1 installed on Windows 8 Pro en-US up to date, everything BizSpark licensed

The bug happens only when the document outline windows is open or has been opened once even closed, no crashes at all since I do not open it I use shortcuts instead or Bring to Front buttons
Posted by Microsoft on 1/7/2013 at 1:03 PM
Hi Arnaud,

On what version of VisualStudio had you experienced the most recent crash? We had released only a private CTP with this fix so far. VisualStudio update with this fix will ship on windows updates in the spring.

Thank you,
windows forms product team.
Posted by Arnaud Dovi on 12/14/2012 at 9:17 AM
Not fixed

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OutOfMemoryException
Stack:
at System.Drawing.Graphics.FromHdcInternal(IntPtr)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.DrawExpanderForNode(IntPtr, System.Windows.Forms.TreeNode, System.Drawing.Brush, System.Drawing.Brush, System.Drawing.Pen)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(System.Runtime.InteropServices.HandleRef, Int32, IntPtr, IntPtr)
at System.Windows.Forms.Control.SendMessage(Int32, IntPtr, IntPtr)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr, System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WmNotify(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.UserControl.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.TreeView.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.TreeView.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(System.Runtime.InteropServices.HandleRef, Int32, Int32, IntPtr)
at System.Windows.Forms.TreeNode.Expand()
at System.Windows.Forms.TreeNode.Realize(Boolean)
at System.Windows.Forms.TreeNodeCollection.AddInternal(System.Windows.Forms.TreeNode, Int32)
at System.Windows.Forms.TreeNodeCollection.Add(System.Windows.Forms.TreeNode)
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.AddComponent(System.Windows.Forms.TreeNode, System.ComponentModel.IComponent)
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.UpdateTreeView()
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.OnIdle(System.Object, System.EventArgs)
at System.EventHandler.Invoke(System.Object, System.EventArgs)
at System.Windows.Forms.Application+ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32)
at System.Windows.Forms.ComponentManagerProxy.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32)
Posted by Arnaud Dovi on 12/14/2012 at 9:16 AM
I'm sorry to say you it is not resolved at all because today after 2 Month without a crash, I have been tempted to reuse the Document Outline window and bam, crash again

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OutOfMemoryException
Stack:
at System.Drawing.Graphics.FromHdcInternal(IntPtr)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.DrawExpanderForNode(IntPtr, System.Windows.Forms.TreeNode, System.Drawing.Brush, System.Drawing.Brush, System.Drawing.Pen)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(System.Runtime.InteropServices.HandleRef, Int32, IntPtr, IntPtr)
at System.Windows.Forms.Control.SendMessage(Int32, IntPtr, IntPtr)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr, System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WmNotify(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.UserControl.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.TreeView.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.TreeView.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(System.Runtime.InteropServices.HandleRef, Int32, Int32, IntPtr)
at System.Windows.Forms.TreeNode.Expand()
at System.Windows.Forms.TreeNode.Realize(Boolean)
at System.Windows.Forms.TreeNodeCollection.AddInternal(System.Windows.Forms.TreeNode, Int32)
at System.Windows.Forms.TreeNodeCollection.Add(System.Windows.Forms.TreeNode)
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.AddComponent(System.Windows.Forms.TreeNode, System.ComponentModel.IComponent)
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.UpdateTreeView()
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.OnIdle(System.Object, System.EventArgs)
at System.EventHandler.Invoke(System.Object, System.EventArgs)
at System.Windows.Forms.Application+ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32)
at System.Windows.Forms.ComponentManagerProxy.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32)
Posted by Arnaud Dovi on 10/4/2012 at 5:35 AM
just to let you now since I have the habit to not use the Document Outline window anymore, 0 crashes, problems respawns as soon as I enable this window

Let me know if you are in trouble to find out what is causing this, I will work to send you a lite version of the solution
Posted by Arnaud Dovi on 9/18/2012 at 7:59 AM
Also to note, I have used all the development version of vs2012 before the Release you have published under Windows 7, not a single crash, I'm experiencing this since the Release which I installed in the same time of reinstalling a new Windows 8 RTM, so I don't really knows if it comes from an operating system change, or the vs2012 dev status.
Posted by Arnaud Dovi on 9/18/2012 at 7:55 AM
If it helps, I can significantly lower the number of crashes by hiding the document outline window, from 40-50 crashes in a day its down to less than 5
Posted by Microsoft on 9/17/2012 at 2:25 AM
Thanks for your update. We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Arnaud Dovi on 9/14/2012 at 8:40 AM
By the way I had tried a patch on devenv editbin /LARGEADDRESSAWARE so if you find devenv is changed this is just editbin but anyway the bug occurs before devenv.exe change
Posted by Arnaud Dovi on 9/14/2012 at 7:42 AM
Done, sent

vs2012-OutOfMemoryException-feedback#1.7z (done today)
vs2012-OutOfMemoryException-feedback#2.7z (submissions of yesterday)
vs2012-OutOfMemoryException-feedback#3.7z (submissions of yesterday)
Posted by Microsoft on 9/14/2012 at 2:03 AM
Hi Arnaud,

We didn't get your file, please zip the file and use "FeedbackID-761609" as prefix of the file name. You can use the following workspace to upload the file:
https://sftus.one.microsoft.com/choosetransfer.aspx?key=c2e9f4b6-afd3-4119-a799-7e6613998b35
Password: uC)1gs2S3q39

Sorry for the inconvenience.
Microsoft Visual Studio Connect Support Team
Posted by Arnaud Dovi on 9/13/2012 at 1:48 AM
Cool tool, have submitted everything possible to the feedback ID 761609, not sure I had to put the same as the ticket ID from here.

Have also been able to reproduce bug and record steps, I think its stilml sending the dump is 8Mb size

Lemme me know if anything goes wrong
Posted by Microsoft on 9/12/2012 at 1:22 AM
Thanks for your response. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a dump file and call stack so that we can conduct further research?

Visual Studio now has an extension called Microsoft Visual Studio 2012 Feedback Tool, available on the VS gallery(http://visualstudiogallery.msdn.microsoft.com/f8a5aac8-0418-4f88-9d34-bdbe2c4cfe72).

The extension allows you to
1. upload files,
2. collect trace and dump files
3. collect steps while you're repro'ing the issue, as well as
4. SQM logs about VS extensions installed
5. System details (in DxDiag output)

Thanks,
Microsoft Visual Studio Connect Support Team
Posted by Arnaud Dovi on 9/11/2012 at 2:26 AM
also should the project be runnable ? because it has many dependencies and i dont see yet how to package it
Posted by Arnaud Dovi on 9/11/2012 at 1:29 AM
I have problem because this is a semi large project and closed source, and this post seems public so I cannot share it here
Posted by Microsoft on 9/9/2012 at 11:09 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

Please submit this information to us within 4 business days. We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by Arnaud Dovi on 9/7/2012 at 8:24 AM
Nope finally it still occurs without any extension
Posted by Arnaud Dovi on 9/7/2012 at 7:57 AM
Seems I can get ride of the memory problem by uninstalling ReSharper + ankhsvn, my biggest Form now opens, but I doubt its the correct solution, I believe devenv.exe is missing something like LARGEADDRESSAWARE flag something like
Posted by Arnaud Dovi on 9/7/2012 at 7:32 AM
And on another Form with the same TreeView and roughly 50x DataGridViews with BindingSource I also stack, its impossible to open the odument outline windows, I get the immediate crash log #1

Let me know I can send you sources if you can keep them private
Posted by Arnaud Dovi on 9/7/2012 at 7:29 AM
Thank you Microsoft, if it can helps I notice it happens only

-on a Form with a TreeView to the left used to switch between various stacked panels with the treeview event AfterSelect, this TreeView has the changed default options, Scrollable=False, CausesValidation=False, ShowLines=False, ShowPlusMinus=False, HideSelection=False, FullRowSelect=True, Dock=Fill, BorderStyle=FixedSingle,Font=SegoUI9pt, Indent=19
-often when opening the document outline window on such Form can cause the crash almost immediately
Posted by Microsoft on 9/7/2012 at 6:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Posted by Arnaud Dovi on 9/7/2012 at 6:51 AM
Similiar crash with another log


Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.ExternalException
Stack:
at System.Drawing.Graphics.CheckErrorStatus(Int32)
at System.Drawing.Graphics.FillRectangle(System.Drawing.Brush, Int32, Int32, Int32, Int32)
at System.Drawing.Graphics.FillRectangle(System.Drawing.Brush, System.Drawing.Rectangle)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.DrawExpanderForNode(IntPtr, System.Windows.Forms.TreeNode, System.Drawing.Brush, System.Drawing.Brush, System.Drawing.Pen)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(System.Runtime.InteropServices.HandleRef, Int32, IntPtr, IntPtr)
at System.Windows.Forms.Control.SendMessage(Int32, IntPtr, IntPtr)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr, System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WmNotify(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.UserControl.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.TreeView.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(System.Runtime.InteropServices.HandleRef, Int32, Int32, IntPtr)
at System.Windows.Forms.TreeNode.Expand()
at System.Windows.Forms.TreeNode.Realize(Boolean)
at System.Windows.Forms.TreeNode.Realize(Boolean)
at System.Windows.Forms.TreeView.OnHandleCreated(System.EventArgs)
at System.Windows.Forms.Control.WmCreate(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.TreeView.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.ThemedTreeView.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32, System.String, System.String, Int32, Int32, Int32, Int32, Int32, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Object)
at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32, System.String, System.String, Int32, Int32, Int32, Int32, Int32, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Object)
at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.TreeView.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean)
at System.Windows.Forms.Control.CreateControl(Boolean)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.UserControl.WndProc(System.Windows.Forms.Message ByRef)
at Microsoft.VisualStudio.Windows.Forms.DocumentOutline.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32, System.String, System.String, Int32, Int32, Int32, Int32, Int32, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Object)
at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32, System.String, System.String, Int32, Int32, Int32, Int32, Int32, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Runtime.InteropServices.HandleRef, System.Object)
at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at Microsoft.VisualStudio.Windows.Forms.WinformsWindowPane.Microsoft.VisualStudio.Shell.Interop.IVsDocOutlineProvider.GetOutline(IntPtr ByRef, Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget ByRef)
at Microsoft.Internal.VisualStudio.Shell.Interop.IVsTrackSelectionExPrivate.Register()
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConnectSelectionContext()
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Activate()
at Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.viewManager_ActiveViewChanged(System.Object, Microsoft.VisualStudio.PlatformUI.Shell.ActiveViewChangedEventArgs)
at System.EventHandler`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Object, System.__Canon)
at Microsoft.VisualStudio.PlatformUI.ExtensionMethods.RaiseEvent[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.EventHandler`1<System.__Canon>, System.Object, System.__Canon)
at Microsoft.VisualStudio.PlatformUI.Shell.ViewManager.SetActiveView(Microsoft.VisualStudio.PlatformUI.Shell.View, Microsoft.VisualStudio.PlatformUI.Shell.ActivationType)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ShowInternal(ShowFlags)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.<Show>b__26()
at Microsoft.VisualStudio.ErrorHandler.CallWithCOMConvention(System.Func`1<Int32>, Boolean)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Show()
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame+MarshalingWindowFrame.<Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame.Show>b__86()
at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Func`1<Int32>)
at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame+MarshalingWindowFrame.Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame.Show()
at Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy.ExecCommand(UInt32, System.Guid ByRef, UInt32, UInt32, IntPtr, IntPtr)
at Microsoft.Internal.VisualStudio.PlatformUI.HierarchyUtilities+<>c__DisplayClass22.<ExecHierParentChain>b__1f()
at Microsoft.VisualStudio.ErrorHandler.CallWithCOMConvention(System.Func`1<Int32>, Boolean)
at Microsoft.Internal.VisualStudio.PlatformUI.HierarchyUtilities.ExecHierParentChain(Microsoft.VisualStudio.Shell.IVsHierarchyItemManager, Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy, Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchy, UInt32, System.Guid ByRef, UInt32, UInt32, IntPtr, IntPtr)
at Microsoft.VisualStudio.PlatformUI.HierarchyItem+HierarchyInvocationController.Invoke(System.Collections.Generic.IEnumerable`1<System.Object>, Microsoft.Internal.VisualStudio.PlatformUI.InputSource, Boolean)
at Microsoft.Internal.VisualStudio.PlatformUI.InvocationController.Invoke(System.Collections.Generic.IEnumerable`1<Microsoft.Internal.VisualStudio.PlatformUI.IInvocationPattern>, Microsoft.Internal.VisualStudio.PlatformUI.InputSource, Boolean, System.Func`2<Microsoft.Internal.VisualStudio.PlatformUI.IInvocationPattern,Microsoft.Internal.VisualStudio.PlatformUI.IInvocationController>)
at Microsoft.Internal.VisualStudio.PlatformUI.InvocationController.Invoke(System.Collections.Generic.IEnumerable`1<Microsoft.Internal.VisualStudio.PlatformUI.IInvocationPattern>, Microsoft.Internal.VisualStudio.PlatformUI.InputSource, Boolean)
at Microsoft.Internal.VisualStudio.PlatformUI.PivotTreeViewItem.InvokeItem(System.Windows.Input.InputDevice)
at Microsoft.Internal.VisualStudio.PlatformUI.PivotTreeViewItem.OnMouseLeftButtonDown(System.Windows.Input.MouseButtonEventArgs)
at System.Windows.UIElement.OnMouseLeftButtonDownThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
at System.Windows.UIElement.OnMouseDownThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.ContentElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
Sign in to post a workaround.