Applies to: TwainControlX

Last updated: 30 November 2018


I get an error message "LoaderLock was detected" when trying to use TwainControlX in Visual Studio 2005. How can this error be prevented?v


Versions of Visual Studio 2005 or later may raise an error "LoaderLock was detected" when attempting to run any TWAIN related functions. This is due to an external library (TWAIN_32.DLL) being accessed. To prevent this error go to the Debug menu in Visual Studio, select Debug/Exceptions, then under Managed Debugging Assistants, uncheck LoaderLock in the Thrown column.