The NotesUserActivity class appears to have a memory leak. When I collect the user activity information from multiple databases and call the GetNthUserActivityEntry
method, the memory usage increases with every call.
I found a few references to this issue, but no solution. I think the issue is related to this call:
' Load the User name for the Activity Structure
UsernameOffset = puActivity + puActivityEntry.UserNameOffset
spUsername = Space(MAXUSERNAME)
Call CopyMemoryString(spUsername, UsernameOffset,Lenb(spUsername))
sUserName = Left(spUsername, Instr(spUsername, Chr(0)) - 1)