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

LogDialog sometimes hangs

From: Dmitry <wipedout_at_yandex.ru>
Date: Fri, 28 Jan 2011 12:17:50 +0300

Hey.

I noticed that a rather old revision (yes I see no changes that could have changed that behavior since that revision) has Log Dialog hanging sometimes. I have no idea what it depends on - just once in a while I when ask to show the changelog the dialog appears and hangs gray for ages, Task Manager shows full load of the CPU core.

I attached the debugger and what I'm seeing is that it hangs inside CLogDlg::ResizeAllListCtrlCols(bool bOnlyVisible) with "bOnlyVisible" set to true. It is inside the loop:

for (size_t index = startRow; index<endRow; ++index)

with "endRow" being shown as 0xFFFFFFFF by the debugger. So looks like for whatever reason "endRow" somehow became -1. "endRow" is being initialized by the following code:

startRow = m_LogList.GetTopIndex();
endRow = startRow + m_LogList.GetCountPerPage();

Do you have any idea of why "endRow" could have become equal to -1?

Thank you.
Dmitry.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2701145

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-01-28 10:17:59 CET

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

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