Events in Extension AddIn do not work

647
4
12-23-2009 07:31 AM
WillemLigtendag
New Contributor II
I created an extension Add-In for ArcMap in C# using the wizard in VS2008. The NewDocument and OpenDocument events are wired up on startup, but the assigned method is never called. Sometimes it works if I step through some statements after having set a breakpoint in the StartUp method and then press F5, but it never works without breakpoints or outside the debugger. I've attached a minimal sample application. The MessageBoxes never show up.

Wim Ligtendag
0 Kudos
4 Replies
RalfGottschalk
Esri Contributor
Hi ligtendag,

The attachement does not seem to download correctly and I can't unzip it.  Probably the best this to do is to log a support incident and we can try to get to the bottom of this problem.
0 Kudos
WillemLigtendag
New Contributor II
Uploading the zipped file does not work. It gets corrupted. Could I mail it somehow? My e-mail address is wligtendag AT esri.nl

Wim
0 Kudos
JohnHauck
Occasional Contributor II
The following defect report has been logged regarding this issue:

[#NIM053339  Application events are not fired correctly for ArcMap Extension add-ins. ]

I can reproduce this issue with the beta 1 build 2217. However, I cannot reproduce this issue with the daily build 2307.
0 Kudos
WillemLigtendag
New Contributor II
I just tested it against Beta 2. The bug is still there.

Wim
0 Kudos