I developed a user form that allows user to edit feature attributes in visual basic 2008. vb.net. 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: http://wfurl.com/3611b10

  • 1
    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)? Commented Jan 9, 2012 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 smartbins.net.
    – blah238
    Commented Jan 9, 2012 at 22:56
  • Edited question to link to code
    – user5373
    Commented Jan 9, 2012 at 23:06
  • 1
    My guess is it has to do with the Microsoft.VisualBasic.PowerPacks.Vs dependency. Likely your clients' machines don't have it installed. See: social.msdn.microsoft.com/Forums/en/vbpowerpacks/thread/…
    – blah238
    Commented Jan 9, 2012 at 23:21
  • 1
    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. Commented Jan 10, 2012 at 1:09

1 Answer 1


(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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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