Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I developed a user form that allows user to edit feature attributes in visual basic 2008. The add-in's that I built work great on my computer, but when I tried it on another, it crashes ArcMap.

is this because the DeveloperKit is not installed on the other computer?

I manually add-in the tool (i.e., Customize, Add from file, etc) and it looks like it installs. ArcMap crashes when I click on the button though. On my computer it work correctly using the same method.

I have uploaded the file to here:

share|improve this question
Does it crash ArcMap while it starting up? Or once ArcMap is up and running and you try to use an AddIn component(button/tool/dockable window)? – Jay Cummins Jan 9 '12 at 21:50
The SDK is not required to run add-ins. Something else is causing the crash, but you'll have to elaborate on your question for anyone to be able to suggest how to fix it. Ideally post your VS solution to someplace like – blah238 Jan 9 '12 at 22:56
Edited question to link to code – user5373 Jan 9 '12 at 23:06
My guess is it has to do with the Microsoft.VisualBasic.PowerPacks.Vs dependency. Likely your clients' machines don't have it installed. See:… – blah238 Jan 9 '12 at 23:21
I think it is best practice to have a try/catch surrounding whatever you're doing in the Button's OnClick. Also should call ReleaseComObject on your cursor at some point. – Kirk Kuykendall Jan 10 '12 at 1:09
up vote 3 down vote accepted

(Months later...)

The answer is to not reference 3rd party dependencies if they aren't on the clients' machines and you aren't distributing them with your add-in. In this case it was the Visual Basic Power Packs dependency, which from the sounds of it wasn't being used anyways.

You should also be sure to implement error handling at all entry points to your add-in so that the host ArcGIS application does not swallow the errors or crash.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.