LoaderLock error detected when debugging ArcMap add-on

900
3
01-26-2011 09:39 AM
RuchiraWelikala
Occasional Contributor
Hey All,
Please refer to the attached screenshot for further clarification.
I'm trying to make a simple application that searches items from a listbox (the listbox is populated with the layer names using ArcObjects code from another module).
However, when i attempt to work with the objects of the form (the listboxes and such), I get this annoying error.
Does anyone have any thoughts on how to fix this error or even clarify for me what is actually happening.

Thanks,
0 Kudos
3 Replies
RuchiraWelikala
Occasional Contributor
Nevermind, got it! 
Silly mistake!
0 Kudos
DianaIoana
New Contributor
Nevermind, got it! 
Silly mistake!


What was the problem?

I get the same error when debugging ArcMap add-on.

Thank you in advance!
0 Kudos
JamesCrandall
MVP Frequent Contributor
What was the problem?

I get the same error when debugging ArcMap add-on.

Thank you in advance!


To disable the error message, open your project properties and click the "Debug" tab.  On this tab, uncheck the box: "Enable unmanaged code debugging".

However, I believe that if you are attempting to call external COM objects, or a custom program written in native code that calls your project and you need to debug the native code, then you might need this option turned on.
0 Kudos