[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: Mon, 28 Jan 2013 19:19:46 +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.

Can you try just adding
ValidateRect(NULL);
instead of calling BeginPaint/EndPaint and check if that works too?

and what's bothering me here: calling Default() means letting the OS
draw the control as if it wasn't subclassed. I doubt that the list
control has such a bug that it fails to validate the drawing region.
Also if it had such a bug, I would see it on my test machines as well.
So my question: do you have some skinning tool installed?

Stefan

-- 
        ___
   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=3046417
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-01-28 19:19:55 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.