[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Visual Studio loader lock errors

From: Chris Marshall <cjmarshall77_at_googlemail.com>
Date: Thu, 2 Oct 2008 10:54:31 -0700 (PDT)

Thanks for the quick reply.

The DLL concerned involves both MFC and ATL. It doesn't have an
explicit dllmain but does include a static instance of a CWinApp
derived class and a static instance of an ATL CComModule, both of
which are likely to be set up when the DLL is loaded. The app class
has an InitInstance method, but all it does is call Init on the module
then forward on to the base class CWinApp. This looks to be standard
wizard generated code as far as I can tell.

At the point the error occurs the Visual Studio modules window shows a
long list of modules. Outside of the in-house stuff, .NET framework, C+
+ runtimes and general windows DLLs a number of programs are hooked
in. These are :
- TortoiseSVN - TortoiseOverlays.dll, intl3_tsvn.dll, libapr_tsvn.dll,
libaprutil_tsvn.dll, TortoiseStub.dll, TortoiseSVN.dll
- TrtseShl.dll from an old version of TortoiseCVS
- HOOKDLL.DLL from an old version of XDesk
- lnhdr.dll from T.Kawasaki's Link Creation Shell Extension
- FolderMenus.dll from KO Approach

TortoiseSVN is the only one of these that I've updated recently.

Regards,

Chris.

On Oct 2, 5:23 pm, Stefan Küng <tortoise..._at_gmail.com> wrote:
> cjmarshal..._at_googlemail.com wrote:
> > Hi,
> > Since upgrading to TortoiseSVN 1.5.3 (from one of the 1.4 series)
> > yesterday I've been getting Visual Studio 'Loader Lock' warnings when
> > debugging. The full text of the warning is :
>
> > Managed Debugging Assistant 'LoaderLock' has detected a problem in
> > '<Snipped path to my application>.vshost.exe'.
> > Additional Information: 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.
>
> > The application is written in VB.NET and calls into a number of C++
> > COM DLLs. The error seems to be occuring at the loading of one of the
> > COM dlls. The DLL is however entirely native code.
>
> TSVN also is completely native code.
> Do you have any code inside your dllmain?
>
> > With native debugging on I noticed that several TortoiseSVN dlls were
> > loaded into the process so one the the things I tried was uninstalling
> > TortoiseSVN. After doing this the problem went away. Reinstall and the
> > problem is back again.
>
> What other dlls are loaded?
>
> Stefan
>
> --
> ___
> oo // \\ "De Chelonian Mobile"
> (_,\/ \_/ \ TortoiseSVN
> \ \_/_\_/> The coolest Interface to (Sub)Version Control
> /_/ \_\ http://tortoisesvn.net
>
> signature.asc
> < 1KViewDownload

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-10-02 20:03:13 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.