Bug 173 - Scrolling through email folders leaks memory
Bug#: 173 Product:  i.Scribe/InScribe Version: v1.90 test1 Platform: PC
OS/Version: Windows XP Status: NEW Severity: minor Priority: P1
Resolution:  Assigned To: fret@memecode.com Reported By: josh@istedconsulting.com
Component: User Interface
Summary: Scrolling through email folders leaks memory
Opened: 2007-12-24 11:59
Description:   Opened: 2007-12-24 11:59
I found this while looking at Scribe memory usage in Task Manager. This
manifests itself in v1.89 Test 22 as well.

I see that when an email folder is clicked on, everything in that folder is
cached to memory to speed up subsequent access.

When I click on a folder for the first time, I see the memory usage go up, as
would be expected. Then I can move the highlight up and down using the arrow
keys, with the memory usage increasing each time a new folder is highlighted.

On my system, I end up with memory usage up around 215-220MB after I've
highlighted all folders.

The stats for the mailbox are:
Mail: 24175
Contacts: 88
Folders: 138
Size: 184.64MB

Mailbox has been recently compacted (2.52K would be saved by compacting)

That memory usage makes pretty good sense, since that's the size of all the
email plus some memory for Scribe.

Here's where the fun starts. I use the arrow keys to scroll up and down the
folder list. Moving from the top of the folder list, to the bottom and then
back up to the top uses up approx. 6MB more memory. It will do this each time,
without fail.

As I said, I am watching this in Task Manager, which is probably not the best
debugging tool available, but it shows me that the total memory usage for
Scribe increases by 6MB each time I scroll from top to bottom and back.