LoaderLock exception


Author
Message
Kari Paukku
Kari Paukku
StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)StrataFrame Novice (95 reputation)
Group: Forum Members
Posts: 65, Visits: 820
Hi,

don't know if one should be worried about this but in case some one else runs into the same, here is what happened:

I have in a form a button that issues a SQL Retrieval command [ BO_Emp.FillAll() ] to populate the form. So, the form is displayed and if the button is clicked, data is retrieved into the form.

Doing this - in debug mode - caused a "LoaderLock" exception that said:

"..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."

Searching the www, I found the following:

"From the Debug menu, find the exceptions,
The under Managed exception, Remove the LoaderLock exception, this will prevent that exception..."

Doing this made the thing to work ok.

Don't quite know if one should do something here...

Cheers,
Kari

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search