Browse Blog Posts by Tags
-
Q : What do you know about this error? It happens sometimes after clicking “Start Debuging” triangle button on VSTA IDE window. A : Add InitializeLifetimeService() method to the class that implements IExternalDebugHost as shown below. == ShapeAppMacroRecordingCSharp sample should add InitializeLifetimeService...
-
These are the steps to enable in-process debugging in ShapeAppMacroRecording sample’s VstaDesignTimeIntegration class: 1. private int currentProcessID; internal void Connect(Application hostApplication) { currentProcessID = System.Diagnostics.Process.GetCurrentProcess().Id; 2. int IExternalDebugHost...
-
Q : In some of my machines, debugging macro code will cause the IDE to hang up. The IDE won’t responsed when F10 is pressed. I have to stop debugging, and I get the below exception: System.Runtime.Remoting.RemotingException: Failed to read from an IPC Port: The pipe has been ended. I think I have...
-
Q : I have a couple of questions that I hope you can answer: 1) It seems that any time the VSTA documentation discusses running end-user-code, it refers to that user code as an “addin,” even if that code comes from a macro recording. Therefore, is it fair to say that all code that end-users...
-
Q : Do you have a sample project that uses VB.Net, VSTA 2.0 and Visual Studio 2008 ? A : EventSample VB for VSTA v 2 Q : I need to figure out how to use the VSTA debugger. Right now, when I place a breakpoint in the addin code, it doesn’t break. If I need to make any changes to the AddIn, I have...