arcobjects

“myapp.exe has triggered a breakpoint” while debugging - afterwards slow symbol loading in Visual Studio 2015 Update 3

不打扰是莪最后的温柔 提交于 2020-01-05 05:33:05
问题 We have a C++ project in STA mode which opens an C#/WPF lib that hosts an ESRI ArcEngine MapControl via WindowsFormsIntegration. This worked fine in Visual Studio 2013. Since we switched to VS2015 Update 3 starting the ArcEngine part while debugging (both in Debug and Release) is horribly slow after an mysterious breakpoint is hit in wntdll.pdb: "ArcEngineTestApp.exe has triggered a breakpoint." There is no further explaination in the Output window (see full output). When I hit continue, the

How does Visual Studio's debugger/interactive window dump the properties of COM Objects in .NET?

空扰寡人 提交于 2020-01-01 02:46:25
问题 In this related question, I noted that Visual Studio's debugger is able to enumerate the properties of System.__ComObject references, which is "a hidden type used when the wrapper type is ambiguous" -- e.g., the type of object you get when you obtain it from another COM object and don't instantiate it yourself: Additionally, if you simply write a COM object's identifier into the Immediate Window, its properties and values are similarly dumped: Note that this is separate from VS2010's "Dynamic

Rhino.Mocks and ref parameter

早过忘川 提交于 2019-12-23 14:49:53
问题 I'm having problems to test a method that has a ref parameter. I'm not the library/code owner, so I can't change it, so please do not suggest that I remove the ref parameter. I'm using this website as reference: http://ayende.com/wiki/Rhino%20Mocks%203.5.ashx#OutandRefarguments Here is the test: [Test] public void TestBuildSimpleProfile() { // arrange var barMock = MockRepository.GenerateStrictMock<ICommandBar>(); var controlBuilder = new ControlBuilder(barMock); var user = new Usuario();

Esri ArcObjects - Esri.ArcGIS.Version assembly

大憨熊 提交于 2019-12-11 00:06:03
问题 Its a long shot, has anyone used Esri ArcObjects recently? According to the docs: A new requirement is runtime binding. Runtime binding refers to locating the appropriate ArcGIS product installation of a stand-alone ArcGIS Desktop or Engine application before any ArcObjects code (including license initialization) is called. The application programming interfaces (APIs) to establish runtime binding are in the ESRI.ArcGIS.RuntimeManager class in the ESRI.ArcGIS.Version assembly But I cannot

How does Visual Studio's debugger/interactive window dump the properties of COM Objects in .NET?

不羁岁月 提交于 2019-12-03 06:39:30
In this related question , I noted that Visual Studio's debugger is able to enumerate the properties of System.__ComObject references, which is "a hidden type used when the wrapper type is ambiguous" -- e.g., the type of object you get when you obtain it from another COM object and don't instantiate it yourself: Additionally, if you simply write a COM object's identifier into the Immediate Window, its properties and values are similarly dumped: Note that this is separate from VS2010's " Dynamic View ", which I believe uses IDispatch and COM reflection to enumerate the properties of COM objects