Select to view content in your preferred language

Map Events Selection Changed Handling - Crashing ArcMap

616
1
04-26-2010 11:28 PM
SreejaS
Deactivated User
Hi All,

I am working on migrating a 9.3 ArcMap application developed on .net 2005 to 9.4 on .net 2008. The application has a number of custom tools, couple of which handles the map selection changed event. The code works fine on 9.3, but is crashing the ArcMap in 9.4 on Map Selection Change, just after running the Selection Changed Event routine and giving error messages

IDE error :

Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.

ESRI error :

ArcGIS Desktop has encountered a serious application error and unable to continue.

Whats going on here? Any idea on this is appreciated.

Thanks
Sreeja S.
0 Kudos
1 Reply
BelindaJerger
Emerging Contributor
I'm hoping you've resolved this issue already, otherwise you've not been able to do much I suspect.  I'm still using 9.3.1, but I'm converting our production code from VB6 to VB.NET and I've run into this error quite often.  Most of the time it has meant that one of my dependency dll's is not registered properly.  I recompile the dependency code, then my current code and run the application, that usually irons out the problem.  I've notice at times I can get that error if I have ArcMap running in a separate debugger.  If possible, it might be something a restart of your development computer can solve easily.
0 Kudos