Results 1 to 3 of 3

Thread: LoaderLock error, help?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    180

    LoaderLock error, help?

    I'm using an AutoDesk Inventor View API (dont think it matters for this question) placed on my form. I can call files and have them open without issue, only when I open assemblies (drawing files) I get this error:

    "LoaderLock was detected: 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."

    I dont expect anyone to know much about the API, however I assume this is a common error. Does anyone know what's going wrong here? Or how to fix it?

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: LoaderLock error, help?

    I'll be honest, I've never seen an error like that before but seems a few other people are having similar issues,

    http://social.msdn.microsoft.com/For...9-903729eb636f

    Hope that helps

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    180

    Re: LoaderLock error, help?

    Well the API is a DirectX Widget. You create a window on the form, and assign it a file name (part file). It will then bring up a 3D image of that part allowing for rotation and zooming of the part.

    I get the error when calling a new part in the code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width