我在某些樣式/模板化XAML代碼中收到了「對象引用未設置爲對象實例」。我做了什麼what this guy suggested並附加了第二個Visual Studio實例來調試它。果然,當我做了一個空白變化並保存它時,這個異常彈出。XAML DesignSurface未將對象引用設置爲對象實例
但是,它並不像它有什麼幫助。這裏的內NullReferenceException異常的堆棧跟蹤:
在Microsoft.Expression.DesignSurface.View.SceneView.SaveGuidesForDocument() 在Microsoft.Expression.DesignSurface.View.SceneView.PrepareDocumentForSaving() 在Microsoft.Expression.DesignHost.Isolation .Remoting.RemoteDesignerView。 <Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerView.PrepareDocumentForSaving> b__18() 在Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()
而這裏的所有的休息:
如何判斷我的代碼中的哪個錯誤導致了這個NullReferenceException?