Skip to main content

I am just writing this line  "SourceCode.K2ROM.Connection mycon = new SourceCode.K2ROM.Connection();"  in windows Application (C#), when it executes it gives an error. which is given below:


Managed Debugging Assistant 'LoaderLock' has detected a problem in 'D:RequirementsUtilityand Bill ProjectUltilityBillingWinAppUltilityBillingWinAppinDebugUltilityBillingWinApp.vshost.exe'.
Additional Information: DLL 'D:RequirementsUtilityand Bill ProjectUltilityBillingWinAppUltilityBillingWinAppinDebugK2ROM.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.


can i any one know that how can i use K2.NET By windows Application....


 Thanks


 


13417i17D853CDD34D871B.jpg

Try this.  (Reference http://vivekthangaswamy.blogspot.com/2006/11/loaderlock-was-detected-error-when.html)


In VS2005, go to the Debug->Exceptions menu. Within the Exceptions dialog expand the "Managed Debugging Assistants" node. Look for LoaderLock and uncheck the "Thrown" column.


 


Reply