StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



LoaderLock exceptionExpand / Collapse
Author
Message
Posted 06/03/2006 11:17:00 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: Forum Members
Last Login: 01/10/2008 9:33:30 AM
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

Post #1362
Posted 06/03/2006 2:33:37 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 08/01/2008 8:53:41 AM
Posts: 2,671, Visits: 1,879
That's very odd.  I've never heard of a LoaderLockException, Kari.  Thanks for the heads up; I'll keep my eyes peeled. 

Oh, and if anyone cannot get to the Exceptions dialog under the Debug menu, you might have to "customize" the toolbars and add the command.  I believe the default shortcut for the Exceptions dialog is Ctrl+Alt+e.


www.bungie.net
Post #1367
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:18pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.