﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » LoaderLock  exception</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 02:36:12 GMT</lastBuildDate><ttl>20</ttl><item><title>LoaderLock  exception</title><link>http://forum.strataframe.net/FindPost1362.aspx</link><description>Hi,&lt;BR&gt;&lt;BR&gt;don't know if one should be worried about this but in case some one else runs into the same, here is what happened:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Doing this - in debug mode - caused a "LoaderLock" exception that said:&lt;/P&gt;&lt;P&gt;"..is&amp;nbsp;attempting managed execution inside OS Loader lock. Do not attempt to&lt;BR&gt;&amp;nbsp;run managed code inside a DllMain or image initialization function&lt;BR&gt;&amp;nbsp;since&amp;nbsp;&amp;nbsp;doing so can cause the application to hang."&lt;BR&gt;&lt;BR&gt;Searching the www, I found the following:&lt;/P&gt;&lt;P&gt;"From the Debug menu, find the exceptions,&lt;BR&gt;The under Managed exception, Remove the LoaderLock exception, this will prevent that exception..."&lt;/P&gt;&lt;P&gt;Doing this made the thing to work ok.&lt;BR&gt;&lt;BR&gt;Don't quite know if one should do something here...&lt;BR&gt;&lt;BR&gt;Cheers,&lt;BR&gt;Kari</description><pubDate>Sat, 03 Jun 2006 14:33:37 GMT</pubDate><dc:creator>Kari Paukku</dc:creator></item><item><title>RE: LoaderLock  exception</title><link>http://forum.strataframe.net/FindPost1367.aspx</link><description>That's very odd.&amp;nbsp; I've never heard of a LoaderLockException, Kari.&amp;nbsp; Thanks for the heads up; I'll keep my eyes peeled.&amp;nbsp;&lt;P&gt;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.&amp;nbsp; I believe the default shortcut for the Exceptions dialog is Ctrl+Alt+e.</description><pubDate>Sat, 03 Jun 2006 14:33:37 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>