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

Re: TortoiseProc.exe Hangs on Initial startup

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sun, 27 Jan 2013 19:59:36 +0100

On 27.01.2013 18:45, Terry Fisher wrote:
> Apparently, it isn't sufficient to simply call CListCtrl::OnPaint().
> CSVNStatusListCtrl::OnPaint() must call BeginPaint()/EndPaint() to
> validate the window and remove the WM_PAINT message from the message
> queue.
>
> I have attached a diff file with changes that work consistently on my
> setup. When I use version of code with my changes, the dialog
> initializes 100% of the time, without my changes, it hangs almost
> every time I open the commit or modifications dialog.
>
> It may be more correct to do the BeginPaint()/EndPaint()
> unconditionally instead of only in the case that m_bBusy and m_bEmpty
> are both false.
>
> Sorry for the confusion, Terry

How about just calling
ValidateRect(NULL);
at the end of OnPaint() ?
That reduces the risk of clearing anything that's already painted, which
is what begin/endpaint does.

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3046237
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-01-27 19:59:47 CET

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.