Here is the situation. I was asked to create a little demo program in order to show how a C# application could easily use our COM DLL's. The C# app is very simple - just a single button that creates an instance of an object from the COM dll. This COM dll displays a dialog and provides a list of various tasks, and depending on which task is selected, CoCreateInstance is called and another COM object is created and another dialog is displayed.
I added the COM dll to my project by adding a reference to the DLL. I then 'new' an object from this DLL and tell it to display its dialog.
Whenever I make a selection on the dialog displayed by the first COM dll, perform some work on the next COM objects dialog created by calling CoCreateInstance, and then close everything, I get a Managed Debugging Assistant 'LoaderLock' error!!
I dont understand what is going wrong. I read these articles but I don't understand how to resolve my issue:
I tried looking at the call stack, but there are no symbols loaded for any call stack frame. As far as I know, the two COM DLL's in question are purely native.
Any help would be greatly appreciated!!
- Changed type Michael Sun [MSFT]Microsoft employee, Moderator Thursday, October 09, 2008 12:53 AM no follow up
We are changing the issue type to “Comment” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question” by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.
Please remember to mark the replies as answers if they help and unmark them if they provide no help. http://forums.msdn.microsoft.com/en-US/csharpide/thread/8e9ed0d7-11ff-402a-8489-9b5f05eeb706 http://forums.msdn.microsoft.com/en-US/vssetup/thread/60424309-bd78-4ca2-b618-03c4a16123b6