Hi,
When I try to debug my project, visual studio stops responding with a message
" Visual Studio is busy and is waiting for an internal operation to complete"
This happens only when I am debugging TreeView_AfterSelect event.
Can anyone suggest why this may be happening
Thanks!

Visual studio does not respond
Cavin
Hi,
I tried yor suggestions but it didn't help me much. Regarding the TreeView, it can have any number of nodes. But I add nodes one level at a time.The treeView is not DataBound, I add nodes manually depending on the result of some operations.
But I got an error "No symbols are loaded for any call stack frames. No source code can be displayed". I don't get any exception as well. I am not using AfterSelect event for the time being but this error occured again when I was on trying to set the contextmenu property of the treenode. I am using PInvoke in my application. Visual Studio just stops responding and I have to kill the process and restart it again.
Any thoughts about what is wrong in my application
Thanks.
barnettr
Language -- C#. It is a windows application and I am using Visual Studio 2005
OS version -- Microsoft XP Professional version 2002 service pack 2
lfassio
Hi,
In order to unerstand the problem better I will need some extra information. What language is your application written in Also, what kind of app is it (Windows or ASP.NET) What version of Visual Studio are you using and what is the OS version
Thanks,
Monica
LukeR_
Ion101
I have noticed that this problem happens when there is a null reference but not restricted to that though. Instead of throwing an exception or error, Visual Studio get 'Busy' and stops responding. I also noticed that the CPU usage seems to be 100% during this time.
Can someone suggest a solution
Rajeshsv
Hi,
Thanks a lot for the details. I have tried repro-ing this with a simple C# Windows app that has a tree iew control on its main form with tree of about 10 nodes (3 levels deep). I added some simple code in the AfterSelect event handler and set a Breakpoint there. The breakpoint was hit successfuly and I could not repro the hang. I have the same setup (VS2005 on XP Pro). I'm thinking it must be something specific to your particular application that causes this. Any chance you could attach some code that exibits this behavior or give some more details about the tree grid (is it data-bound, does it has a large number of nodes/levels, etc) or the code inside the event handler that could help us repro this issue Could disabling the hosting process from the Project Properties | Debuggning page help get rid of this ssue (which sounds like maybe a race condition to me) Also, make sure that you don't have anything in the Watch window (better yet, make sure that the Autos, Locals and Watch wndows are closed when you start debugging).
Thanks again,
Monica Boris [msft]