Browse Blog Posts by Tags
-
Q : When I try to use ProxyGen to generate a descriptor file for ShapeAppCSharp.exe, it reports an unrecoverable error. No error code is given, but it reports that the exception has been thrown by a target of an invocation. I get the same error when I apply ProxyGen to a couple of my own projects - even...
-
You can change a proxy to make the methods within the hostType class accessible by: 1) Remove the abstract keyword from the type declaration (drawback- add-ins will now be able to write code like “Application app = new Application();” instead of being forced to use factory methods). 2) Replace...
-
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...
-
Q : I would like to continue with the OMAgent thus avoiding the annoying hard coded proxy which is used in the ShapeApp samples. Is it somehow possible to take the NND functionality from the ‘ShapeAppMFC-MultiMacroStorageV3’ or another sample and add it to the ‘ShapeAppBasicMFCWithOMAgent’...
-
Q : I’m using ShapeAppBasicCSharp sample. I'm pretty clear on using Adapters to pass types that are not in VSTA proxy. Not clear on how to mix a proxied type with a custom adapter type. In this sample,I’ll start simply by passing the current Document as IElement through custom adapter...
-
During out of process debugging occasionally the pdb file becomes locked and prevents builds from finishing successfully. The VstaDesignTimeIntegration . DeleteMacroPdb method, called in OnBuildBegin, is suppose to ensure that this does not happen by cycling until the bits are no longer locked, then...
-
As mentioned in Part III, any events an add-in hooks into should be unhooked in the add-in, presumably in the Shutdown method. Unfortunately, if the add-in does not unhook from an event this can cause problems- namely that the host application will continue to attempt to reach the add-in code when the...