Problem with debugging ArcObjects

Discussion created by laakkves on Dec 14, 2011
Latest reply on Dec 15, 2011 by rlwatson
We have problems debugging ArcObjects 10.0 AddIn in Visual Studio 2010 sp1 on windows 7 platform. Even the code itself is working, but it's impossible to debugg, because ArcMap crashes in couples of seconds after stopping to the breakpoint. Without breakpoint, everything works fine. In fact, we can debugg, if we don't have LOCALS-window open, but instead of that for example OUTPUT-window. In this situation we can debugg step by step, if we omit to hover mouse over some Arcobject reference, which will lead to solve reference value I guess. Short code example of  this strange behaviour next, but it seems to be present at all Arcobjects code

private IWorkspace ConnectFGDB(string path){
IWorkspaceFactory FGDBFactory = new FileGDBWorkspaceFactoryClass();
                IWorkspace ws;
                ws = FGDBFactory.OpenFromFile(path, 0);
                return ws;}

In additon to that AddIN, solution include couple of projects dealing with datalayer, view and viewmodel layer according the MVVM- pattern. Views are implemented by WPF.