Managed Debugging Assistant 'LoaderLock' has detected a problem in '..bin\Debug\Paperchase.Apps.ChapterLevelZone.vshost.exe'.
Additional information: DLL '..bin\Debug\PegasusImaging.WinForms.ImagXpress7.dll' is 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.
IF I TRY TO UNCHECK THE LOADER LOCK FROM EXCEPTION SETTINGS, The application stops working when the dll is hitHow to avoid it?