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

Re: Language resource DLL in TortoiseSVN is never unloaded

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 02 Aug 2011 18:35:40 +0200

On 02.08.2011 13:39, Konstantin Kolinko wrote:
> Hi!
>
> I noticed the following issue when reinstalling betas:
> If I use non-localized version of TortoiseSVN reinstallation goes
> smoothly without need to reboot.
>
> If I use localized version, reinstallation does require reboot.
> The cause is that the localization library, e.g.
> Languages\TortoiseProc1049.dll remains locked.
>
>
> Looking at the sources I see that
> CTortoiseProcApp::InitInstance() in TortoiseProc.cpp loads the DLL,
> but it is never unloaded.
>
> Would it be safe in CTortoiseProcApp::ExitInstance() to
> 1) call AfxSetResourceHandle( ) with its default value (NULL ?), and
> 2) unload the DLL ?

dlls are always unloaded automatically when the process exits. No need
to do anything - the system does this already.

The language dll is also loaded by the explorer process for the context
menus, which means the desktop process has the dll loaded as well.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2808215
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-08-02 18:36:03 CEST

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