Managed Debugging Assistant 'LoaderLock'??? - HELP

    General discussion

  • Hi.

    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!!

    Thursday, October 02, 2008 3:36 PM

All replies

  • Anybody??!?!
    Friday, October 03, 2008 12:27 PM
  •   Hi, 
    Could you show us how the CoCreateInstance work, nor it's hard to reproduce the situation, we're just guessing.

    Best regards,
    Monday, October 06, 2008 11:11 AM

    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.

    Thank you!

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Thursday, October 09, 2008 12:52 AM